ForgePatch/patches/minecraft/net/minecraft/tileentity/BannerPattern.java.patch

27 lines
995 B
Diff
Raw Normal View History

2019-02-19 04:21:59 +00:00
--- a/net/minecraft/tileentity/BannerPattern.java
+++ b/net/minecraft/tileentity/BannerPattern.java
2020-06-19 14:58:45 +00:00
@@ -12,7 +12,7 @@
2019-02-19 04:21:59 +00:00
import net.minecraftforge.api.distmarker.OnlyIn;
2019-05-23 23:02:15 +00:00
import org.apache.commons.lang3.tuple.Pair;
2019-02-19 04:21:59 +00:00
-public enum BannerPattern {
+public enum BannerPattern implements net.minecraftforge.common.IExtensibleEnum {
2020-06-19 14:58:45 +00:00
BASE("base", "b", false),
SQUARE_BOTTOM_LEFT("square_bottom_left", "bl"),
SQUARE_BOTTOM_RIGHT("square_bottom_right", "br"),
@@ -102,6 +102,14 @@
2019-02-19 04:21:59 +00:00
return null;
}
2019-05-23 23:02:15 +00:00
2020-06-24 00:56:24 +00:00
+ public static BannerPattern create(String enumName, String fileNameIn, String hashNameIn) {
2019-05-23 23:02:15 +00:00
+ throw new IllegalStateException("Enum not extended");
2019-02-19 04:21:59 +00:00
+ }
2019-05-23 23:02:15 +00:00
+
2020-06-24 00:56:24 +00:00
+ public static BannerPattern create(String enumName, String fileNameIn, String hashNameIn, boolean p_i231861_5_) {
2019-05-23 23:02:15 +00:00
+ throw new IllegalStateException("Enum not extended");
2019-02-19 04:21:59 +00:00
+ }
2019-05-23 23:02:15 +00:00
+
public static class Builder {
private final List<Pair<BannerPattern, DyeColor>> field_222478_a = Lists.newArrayList();