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