Implement new Hooks, update dependencies info
This commit is contained in:
parent
2e08945054
commit
592d397bad
4 changed files with 7 additions and 4 deletions
|
@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G
|
|||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/versions.html
|
||||
minecraft_version=1.19.2
|
||||
yarn_mappings=1.19.2+build.13
|
||||
yarn_mappings=1.19.2+build.18
|
||||
loader_version=0.14.9
|
||||
# Mod Properties
|
||||
mod_version = 1.1.4
|
||||
|
|
|
@ -4,12 +4,14 @@ import com.mojang.brigadier.Command;
|
|||
import com.mojang.brigadier.CommandDispatcher;
|
||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||
import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
|
||||
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
|
||||
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
|
||||
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
|
||||
|
||||
public abstract class EaaModCommand implements Command<FabricClientCommandSource> {
|
||||
|
||||
public EaaModCommand() {
|
||||
this(ClientCommandManager.getActiveDispatcher());
|
||||
ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> this.register(dispatcher));
|
||||
}
|
||||
|
||||
public EaaModCommand(CommandDispatcher<FabricClientCommandSource> dispatcher) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "net.saltymc.eaa.mixin",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
],
|
||||
"client": [
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
"depends": {
|
||||
"fabricloader": ">=0.7.4",
|
||||
"fabric": "*",
|
||||
"minecraft": "1.19.x"
|
||||
"minecraft": "1.19.x",
|
||||
"java": ">=17"
|
||||
},
|
||||
"suggests": {
|
||||
"another-mod": "*"
|
||||
|
|
Loading…
Reference in a new issue