1.21.0
This commit is contained in:
parent
f0cc430e2e
commit
705c57a571
43
build.gradle
43
build.gradle
@ -1,11 +1,15 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.1-SNAPSHOT'
|
||||
id 'fabric-loom' version '1.7-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
version = project.mod_version
|
||||
group = project.maven_group
|
||||
|
||||
base {
|
||||
archivesName = project.archives_base_name
|
||||
}
|
||||
|
||||
repositories {
|
||||
// Add repositories to retrieve artifacts from in here.
|
||||
// You should only use this when depending on other mods because
|
||||
@ -18,6 +22,17 @@ repositories {
|
||||
}
|
||||
}
|
||||
|
||||
loom {
|
||||
splitEnvironmentSourceSets()
|
||||
|
||||
mods {
|
||||
"haxxor" {
|
||||
sourceSet sourceSets.client
|
||||
sourceSet sourceSets.main
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// To change the versions see the gradle.properties file
|
||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||
@ -26,53 +41,43 @@ dependencies {
|
||||
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
modImplementation files("libs/cmods-1.2.1-dev.jar")
|
||||
modImplementation files("libs/cmods-1.2.2-dev.jar")
|
||||
modCompileOnly "com.terraformersmc:modmenu:4.1.1"
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property "version", project.version
|
||||
filteringCharset "UTF-8"
|
||||
|
||||
filesMatching("fabric.mod.json") {
|
||||
expand "version": project.version
|
||||
}
|
||||
}
|
||||
|
||||
def targetJavaVersion = 17
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||
// this fixes some edge cases with special characters not displaying correctly
|
||||
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
||||
// If Javadoc is generated, this must be specified in that task too.
|
||||
it.options.encoding = "UTF-8"
|
||||
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
|
||||
it.options.release = targetJavaVersion
|
||||
}
|
||||
it.options.release = 21
|
||||
}
|
||||
|
||||
java {
|
||||
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
|
||||
if (JavaVersion.current() < javaVersion) {
|
||||
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
||||
}
|
||||
archivesBaseName = project.archives_base_name
|
||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
|
||||
// if it is present.
|
||||
// If you remove this line, sources will not be generated.
|
||||
withSourcesJar()
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
jar {
|
||||
from("LICENSE") {
|
||||
rename { "${it}_${project.archivesBaseName}" }
|
||||
rename { "${it}_${project.base.archivesName.get()}"}
|
||||
}
|
||||
}
|
||||
|
||||
// configure the maven publication
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
create("mavenJava", MavenPublication) {
|
||||
artifactId = project.archives_base_name
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
@ -2,13 +2,13 @@
|
||||
org.gradle.jvmargs=-Xmx2G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.20.4
|
||||
yarn_mappings=1.20.4+build.3
|
||||
loader_version=0.15.6
|
||||
minecraft_version=1.21
|
||||
yarn_mappings=1.21+build.7
|
||||
loader_version=0.15.11
|
||||
# Mod Properties
|
||||
mod_version=2.4.1
|
||||
mod_version=2.4.2
|
||||
maven_group=cmods
|
||||
archives_base_name=haxxor
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.96.1+1.20.4
|
||||
fabric_version=0.100.4+1.21
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1 +1 @@
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||
|
@ -1,7 +1,10 @@
|
||||
package cmods.haxxor.client;
|
||||
package cmods.haxxor;
|
||||
|
||||
import cmods.haxxor.HaxxorModule;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.hacks.AutoFarmer;
|
||||
import cmods.haxxor.hacks.Elevator;
|
||||
import cmods.haxxor.hacks.FallDamageCancel;
|
||||
import cmods.haxxor.hacks.FlyHack;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
@ -3,13 +3,13 @@ package cmods.haxxor;
|
||||
import cmods.cmods.api.ButtonBuilder;
|
||||
import cmods.cmods.api.Module;
|
||||
import cmods.cmods.api.ModuleOptions;
|
||||
import cmods.cmods.client.ui.Line;
|
||||
import cmods.cmods.client.ui.ToggleButton;
|
||||
import cmods.haxxor.client.AutoFarmer;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.client.ui.ElevatorOptionsScreen;
|
||||
import cmods.haxxor.client.ui.FarmerOptionsScreen;
|
||||
import cmods.haxxor.client.ui.GlowOptionsScreen;
|
||||
import cmods.cmods.ui.Line;
|
||||
import cmods.cmods.ui.ToggleButton;
|
||||
import cmods.haxxor.hacks.AutoFarmer;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import cmods.haxxor.ui.ElevatorOptionsScreen;
|
||||
import cmods.haxxor.ui.FarmerOptionsScreen;
|
||||
import cmods.haxxor.ui.GlowOptionsScreen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
import net.minecraft.text.Text;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@ -17,8 +17,8 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import static cmods.cmods.client.ui.Constants.buttonHeight;
|
||||
import static cmods.cmods.client.ui.Constants.buttonWidth;
|
||||
import static cmods.cmods.ui.Constants.buttonHeight;
|
||||
import static cmods.cmods.ui.Constants.buttonWidth;
|
||||
|
||||
public class HaxxorModule extends Module {
|
||||
private static final int precedence = 0;
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.client;
|
||||
package cmods.haxxor;
|
||||
|
||||
import cmods.haxxor.client.ui.HaxxorOptionsScreen;
|
||||
import cmods.haxxor.ui.HaxxorOptionsScreen;
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.client;
|
||||
package cmods.haxxor.hacks;
|
||||
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectArrayMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||
import net.minecraft.block.*;
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.client;
|
||||
package cmods.haxxor.hacks;
|
||||
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.option.KeyBinding;
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.client;
|
||||
package cmods.haxxor.hacks;
|
||||
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
|
||||
import net.minecraft.util.math.BlockPos;
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.client;
|
||||
package cmods.haxxor.hacks;
|
||||
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.mixin;
|
||||
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.mixin;
|
||||
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.entity.Entity;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
@ -1,9 +1,9 @@
|
||||
package cmods.haxxor.client.options;
|
||||
package cmods.haxxor.options;
|
||||
|
||||
import cmods.cmods.api.ModuleOptions;
|
||||
import cmods.cmods.client.options.BooleanOption;
|
||||
import cmods.cmods.client.options.IntegerOption;
|
||||
import cmods.haxxor.client.AutoFarmer;
|
||||
import cmods.cmods.options.BooleanOption;
|
||||
import cmods.cmods.options.IntegerOption;
|
||||
import cmods.haxxor.hacks.AutoFarmer;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Properties;
|
@ -1,9 +1,9 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import cmods.cmods.client.options.CmodsOptions;
|
||||
import cmods.cmods.client.ui.ToggleButton;
|
||||
import cmods.haxxor.client.AutoFarmer;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.cmods.options.CmodsOptions;
|
||||
import cmods.cmods.ui.ToggleButton;
|
||||
import cmods.haxxor.hacks.AutoFarmer;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
@ -13,7 +13,7 @@ import net.minecraft.client.gui.widget.SimplePositioningWidget;
|
||||
import net.minecraft.screen.ScreenTexts;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
import static cmods.cmods.client.ui.Constants.*;
|
||||
import static cmods.cmods.ui.Constants.*;
|
||||
|
||||
public class CropSelectScreen extends Screen {
|
||||
private final CmodsOptions global_options = CmodsOptions.getInstance();
|
||||
@ -62,19 +62,19 @@ public class CropSelectScreen extends Screen {
|
||||
}
|
||||
|
||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
|
||||
final int column1 = width / 2 + column1_offset;
|
||||
final int column2 = width / 2 + column2_offset;
|
||||
final int startHeight = (int) Math.floor(height * startHeight_multiplier) + heightOffset;
|
||||
|
||||
this.renderBackground(context, mouseX, mouseY, delta);
|
||||
// this.renderBackground(context, mouseX, mouseY, delta);
|
||||
|
||||
context.drawCenteredTextWithShadow(textRenderer, Text.translatable("haxxor.options.farmer.crop_select.seeds"),
|
||||
column1 + buttonWidth / 2, startHeight - rowIncrement, 0xffffff);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
context.drawCenteredTextWithShadow(textRenderer, Text.translatable("haxxor.options.farmer.crop_select.blocks"),
|
||||
column2 + buttonWidth / 2, startHeight - rowIncrement, 0xffffff);
|
||||
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
}
|
||||
|
||||
public void removed() {
|
@ -1,4 +1,4 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
import net.minecraft.text.Text;
|
||||
@ -10,7 +10,7 @@ public class CycleButtonWidget extends ButtonWidget {
|
||||
|
||||
|
||||
public CycleButtonWidget(int x, int y, int width, int height, Text[] options, int startIndex, CycleAction onCycle) {
|
||||
this(x, y, width, height, options, startIndex, onCycle, ButtonWidget.DEFAULT_NARRATION_SUPPLIER);
|
||||
this(x, y, width, height, options, startIndex, onCycle, DEFAULT_NARRATION_SUPPLIER);
|
||||
}
|
||||
|
||||
public CycleButtonWidget(int x, int y, int width, int height, Text[] options, int startIndex, CycleAction onCycle,
|
@ -1,9 +1,9 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import cmods.cmods.client.options.CmodsOptions;
|
||||
import cmods.cmods.client.ui.IntegerAdjustWidget;
|
||||
import cmods.cmods.client.ui.ToggleButton;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.cmods.options.CmodsOptions;
|
||||
import cmods.cmods.ui.IntegerAdjustWidget;
|
||||
import cmods.cmods.ui.ToggleButton;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
@ -12,7 +12,7 @@ import net.minecraft.client.gui.widget.SimplePositioningWidget;
|
||||
import net.minecraft.screen.ScreenTexts;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
import static cmods.cmods.client.ui.Constants.*;
|
||||
import static cmods.cmods.ui.Constants.*;
|
||||
|
||||
public class ElevatorOptionsScreen extends Screen {
|
||||
private final Screen parent;
|
||||
@ -53,9 +53,9 @@ public class ElevatorOptionsScreen extends Screen {
|
||||
}
|
||||
|
||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||
this.renderBackground(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
// this.renderBackground(context, mouseX, mouseY, delta);
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
}
|
||||
|
||||
public void removed() {
|
@ -1,10 +1,10 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import cmods.cmods.client.options.CmodsOptions;
|
||||
import cmods.cmods.client.ui.IntegerAdjustWidget;
|
||||
import cmods.cmods.client.ui.ToggleButton;
|
||||
import cmods.haxxor.client.HaxxorClient;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.cmods.options.CmodsOptions;
|
||||
import cmods.cmods.ui.IntegerAdjustWidget;
|
||||
import cmods.cmods.ui.ToggleButton;
|
||||
import cmods.haxxor.HaxxorClient;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
@ -13,7 +13,7 @@ import net.minecraft.client.gui.widget.SimplePositioningWidget;
|
||||
import net.minecraft.screen.ScreenTexts;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
import static cmods.cmods.client.ui.Constants.*;
|
||||
import static cmods.cmods.ui.Constants.*;
|
||||
|
||||
public class FarmerOptionsScreen extends Screen {
|
||||
private final Screen parent;
|
||||
@ -77,9 +77,9 @@ public class FarmerOptionsScreen extends Screen {
|
||||
}
|
||||
|
||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||
this.renderBackground(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
// this.renderBackground(context, mouseX, mouseY, delta);
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
}
|
||||
|
||||
public void removed() {
|
@ -1,9 +1,9 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import cmods.cmods.client.options.CmodsOptions;
|
||||
import cmods.cmods.client.ui.ToggleButton;
|
||||
import cmods.haxxor.client.HaxxorClient;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.cmods.options.CmodsOptions;
|
||||
import cmods.cmods.ui.ToggleButton;
|
||||
import cmods.haxxor.HaxxorClient;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
@ -12,7 +12,7 @@ import net.minecraft.client.gui.widget.SimplePositioningWidget;
|
||||
import net.minecraft.screen.ScreenTexts;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
import static cmods.cmods.client.ui.Constants.*;
|
||||
import static cmods.cmods.ui.Constants.*;
|
||||
|
||||
public class GlowOptionsScreen extends Screen {
|
||||
private final Screen parent;
|
||||
@ -56,9 +56,9 @@ public class GlowOptionsScreen extends Screen {
|
||||
}
|
||||
|
||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||
this.renderBackground(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
// this.renderBackground(context, mouseX, mouseY, delta);
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
}
|
||||
|
||||
public void removed() {
|
@ -1,9 +1,9 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import cmods.cmods.client.options.CmodsOptions;
|
||||
import cmods.cmods.client.ui.ToggleButton;
|
||||
import cmods.haxxor.client.HaxxorClient;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.cmods.options.CmodsOptions;
|
||||
import cmods.cmods.ui.ToggleButton;
|
||||
import cmods.haxxor.HaxxorClient;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
@ -12,7 +12,7 @@ import net.minecraft.client.gui.widget.SimplePositioningWidget;
|
||||
import net.minecraft.screen.ScreenTexts;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
import static cmods.cmods.client.ui.Constants.*;
|
||||
import static cmods.cmods.ui.Constants.*;
|
||||
|
||||
public class HaxxorOptionsScreen extends Screen {
|
||||
private final Screen parent;
|
||||
@ -58,14 +58,14 @@ public class HaxxorOptionsScreen extends Screen {
|
||||
}
|
||||
|
||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||
renderBackground(context, mouseX, mouseY, delta);
|
||||
Text versionText = Text.literal("v" + HaxxorClient.version);
|
||||
// renderBackground(context, mouseX, mouseY, delta);
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
|
||||
Text versionText = Text.literal("v" + HaxxorClient.version);
|
||||
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
context.drawTextWithShadow(textRenderer, versionText, width - textRenderer.getWidth(versionText) - 2,
|
||||
this.height - textRenderer.fontHeight - 2, 0xffffff);
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
}
|
||||
|
||||
public void removed() {
|
@ -1,6 +1,6 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import cmods.cmods.client.options.IntegerOption;
|
||||
import cmods.cmods.options.IntegerOption;
|
||||
import net.minecraft.client.gui.widget.SliderWidget;
|
||||
import net.minecraft.text.Text;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package cmods.haxxor.client.ui;
|
||||
package cmods.haxxor.ui;
|
||||
|
||||
import cmods.cmods.client.options.CmodsOptions;
|
||||
import cmods.cmods.client.ui.ToggleButton;
|
||||
import cmods.haxxor.client.options.HaxxorOptions;
|
||||
import cmods.cmods.options.CmodsOptions;
|
||||
import cmods.cmods.ui.ToggleButton;
|
||||
import cmods.haxxor.options.HaxxorOptions;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
@ -11,7 +11,7 @@ import net.minecraft.client.gui.widget.SimplePositioningWidget;
|
||||
import net.minecraft.screen.ScreenTexts;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
import static cmods.cmods.client.ui.Constants.*;
|
||||
import static cmods.cmods.ui.Constants.*;
|
||||
|
||||
public class UIOptionsScreen extends Screen {
|
||||
private final Screen parent;
|
||||
@ -51,9 +51,9 @@ public class UIOptionsScreen extends Screen {
|
||||
}
|
||||
|
||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||
this.renderBackground(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
// this.renderBackground(context, mouseX, mouseY, delta);
|
||||
super.render(context, mouseX, mouseY, delta);
|
||||
context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xffffff);
|
||||
}
|
||||
|
||||
public void removed() {
|
@ -14,8 +14,12 @@
|
||||
"icon": "assets/haxxor/icon.png",
|
||||
"environment": "client",
|
||||
"entrypoints": {
|
||||
"client": ["cmods.haxxor.client.HaxxorClient"],
|
||||
"modmenu": ["cmods.haxxor.client.ModMenuConfig"]
|
||||
"client": [
|
||||
"cmods.haxxor.HaxxorClient"
|
||||
],
|
||||
"modmenu": [
|
||||
"cmods.haxxor.ModMenuConfig"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"haxxor.mixins.json"
|
||||
@ -23,7 +27,7 @@
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.10",
|
||||
"fabric": "*",
|
||||
"minecraft": "1.20.4",
|
||||
"cmods": "1.2.1"
|
||||
"minecraft": "1.21.0",
|
||||
"cmods": "1.2.2"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user