Skip to content

Commit

Permalink
Update Gui.HeartType again
Browse files Browse the repository at this point in the history
  • Loading branch information
XFactHD committed Jun 8, 2024
1 parent ab452eb commit 7417877
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions patches/net/minecraft/client/gui/Gui.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,11 @@
+
@OnlyIn(Dist.CLIENT)
- public static enum HeartType {
+ public static enum HeartType implements net.neoforged.neoforge.common.IExtensibleEnum {
+ public static enum HeartType implements net.neoforged.fml.common.asm.enumextension.IExtensibleEnum {
CONTAINER(
new ResourceLocation("hud/heart/container"),
new ResourceLocation("hud/heart/container_blinking"),
@@ -1406,8 +_,23 @@
@@ -1406,8 +_,13 @@
} else {
gui$hearttype = NORMAL;
}
Expand All @@ -394,18 +394,8 @@
return gui$hearttype;
+ }
+
+ public static HeartType create(
+ String name,
+ ResourceLocation full,
+ ResourceLocation fullBlinking,
+ ResourceLocation half,
+ ResourceLocation halfBlinking,
+ ResourceLocation hardcoreFull,
+ ResourceLocation hardcoreFullBlinking,
+ ResourceLocation hardcoreHalf,
+ ResourceLocation hardcoreHalfBlinking
+ ) {
+ throw new IllegalStateException("Enum not extended");
+ public static net.neoforged.fml.common.asm.enumextension.ExtensionInfo getExtensionInfo() {
+ return net.neoforged.fml.common.asm.enumextension.ExtensionInfo.nonExtended(Gui.HeartType.class);
}
}
}

0 comments on commit 7417877

Please sign in to comment.