Updated to 1.18.2
This commit is contained in:
parent
e475650d90
commit
2bdcbc3be4
@ -32,7 +32,7 @@ dependencies {
|
|||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
filesMatching("fabric.mod.json") {
|
filesMatching("fabric.mod.json") {
|
||||||
expand "version": project.version
|
expand "version": project.version, "mc_version": project.minecraft_version
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
org.gradle.jvmargs=-Xmx2G
|
org.gradle.jvmargs=-Xmx2G
|
||||||
|
|
||||||
# Fabric (https://fabricmc.net/versions.html)
|
# Fabric (https://fabricmc.net/versions.html)
|
||||||
minecraft_version=1.18.1
|
minecraft_version=1.18.2
|
||||||
yarn_mappings=1.18.1+build.14
|
yarn_mappings=1.18.2+build.1
|
||||||
loader_version=0.12.12
|
loader_version=0.12.12
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
|
@ -7,16 +7,16 @@ import dummy.addon.template.modules.hud.HudExample;
|
|||||||
import meteordevelopment.meteorclient.MeteorClient;
|
import meteordevelopment.meteorclient.MeteorClient;
|
||||||
import meteordevelopment.meteorclient.addons.MeteorAddon;
|
import meteordevelopment.meteorclient.addons.MeteorAddon;
|
||||||
import meteordevelopment.meteorclient.systems.commands.Commands;
|
import meteordevelopment.meteorclient.systems.commands.Commands;
|
||||||
|
import meteordevelopment.meteorclient.systems.hud.HUD;
|
||||||
import meteordevelopment.meteorclient.systems.modules.Category;
|
import meteordevelopment.meteorclient.systems.modules.Category;
|
||||||
import meteordevelopment.meteorclient.systems.modules.Modules;
|
import meteordevelopment.meteorclient.systems.modules.Modules;
|
||||||
import meteordevelopment.meteorclient.systems.modules.render.hud.HUD;
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
|
||||||
import org.apache.logging.log4j.Logger;
|
|
||||||
import java.lang.invoke.MethodHandles;
|
import java.lang.invoke.MethodHandles;
|
||||||
|
|
||||||
public class TemplateAddon extends MeteorAddon {
|
public class TemplateAddon extends MeteorAddon {
|
||||||
public static final Logger LOG = LogManager.getLogger();
|
public static final Logger LOG = LoggerFactory.getLogger(TemplateAddon.class);
|
||||||
public static final Category CATEGORY = new Category("Example");
|
public static final Category CATEGORY = new Category("Example");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -34,8 +34,7 @@ public class TemplateAddon extends MeteorAddon {
|
|||||||
Commands.get().add(new ExampleCommand());
|
Commands.get().add(new ExampleCommand());
|
||||||
|
|
||||||
// HUD
|
// HUD
|
||||||
HUD hud = Modules.get().get(HUD.class);
|
HUD.get().elements.add(new HudExample());
|
||||||
hud.elements.add(new HudExample(hud));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package dummy.addon.template.modules.hud;
|
package dummy.addon.template.modules.hud;
|
||||||
|
|
||||||
import meteordevelopment.meteorclient.systems.modules.render.hud.HUD;
|
import meteordevelopment.meteorclient.systems.hud.HUD;
|
||||||
import meteordevelopment.meteorclient.systems.modules.render.hud.modules.DoubleTextHudElement;
|
import meteordevelopment.meteorclient.systems.hud.modules.DoubleTextHudElement;
|
||||||
|
|
||||||
public class HudExample extends DoubleTextHudElement {
|
public class HudExample extends DoubleTextHudElement {
|
||||||
public HudExample(HUD hud) {
|
public HudExample() {
|
||||||
super(hud, "hud-example", "Description", "Static left text: ", false);
|
super(HUD.get(), "hud-example", "Description", "Static left text: ", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"depends": {
|
"depends": {
|
||||||
"java": ">=17",
|
"java": ">=17",
|
||||||
"minecraft": ">=1.18",
|
"minecraft": ">=${mc_version}",
|
||||||
"meteor-client": "*"
|
"meteor-client": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user