Make EnumRarity extensible
This commit is contained in:
parent
416bf9e3bf
commit
bda3f1b7c6
2 changed files with 23 additions and 0 deletions
22
patches/minecraft/net/minecraft/item/EnumRarity.java.patch
Normal file
22
patches/minecraft/net/minecraft/item/EnumRarity.java.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- a/net/minecraft/item/EnumRarity.java
|
||||
+++ b/net/minecraft/item/EnumRarity.java
|
||||
@@ -1,8 +1,9 @@
|
||||
package net.minecraft.item;
|
||||
|
||||
+import net.minecraft.tileentity.BannerPattern;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
|
||||
-public enum EnumRarity {
|
||||
+public enum EnumRarity implements net.minecraftforge.common.IExtensibleEnum {
|
||||
COMMON(TextFormatting.WHITE),
|
||||
UNCOMMON(TextFormatting.YELLOW),
|
||||
RARE(TextFormatting.AQUA),
|
||||
@@ -13,4 +14,8 @@
|
||||
private EnumRarity(TextFormatting p_i48837_3_) {
|
||||
this.field_77937_e = p_i48837_3_;
|
||||
}
|
||||
+
|
||||
+ public static BannerPattern create(String enumName, TextFormatting p_i48837_3_) {
|
||||
+ throw new IllegalStateException("Enum not extended");
|
||||
+ }
|
||||
}
|
|
@ -28,6 +28,7 @@ net/minecraft/entity/player/EntityPlayer.getDigSpeed(Lnet/minecraft/block/state/
|
|||
net/minecraft/entity/player/EntityPlayerMP.changeDimension(Lnet/minecraft/world/dimension/DimensionType;Lnet/minecraftforge/common/util/ITeleporter;)Lnet/minecraft/entity/Entity;=|p_212321_1_,teleporter
|
||||
|
||||
net/minecraft/item/ArmorMaterial.create(Ljava/lang/String;Ljava/lang/String;I[IILnet/minecraft/util/SoundEvent;FLjava/util/function/Supplier;)Lnet/minecraft/item/ArmorMaterial;=|name,p_i48533_3_,p_i48533_4_,p_i48533_5_,p_i48533_6_,p_i48533_7_,p_i48533_8_,p_i48533_9_
|
||||
net/minecraft/item/EnumRarity.create(Ljava/lang/String;Lnet/minecraft/util/text/TextFormatting;)Lnet/minecraft/tileentity/BannerPattern;=|enumName,p_i48837_3_
|
||||
net/minecraft/item/ItemStack.<init>(Lnet/minecraft/util/IItemProvider;ILnet/minecraft/nbt/NBTTagCompound;)V=|p_i48204_1_,p_i48204_2_,capNBT
|
||||
|
||||
net/minecraft/network/PacketBuffer.writeItemStack(Lnet/minecraft/item/ItemStack;Z)Lnet/minecraft/network/PacketBuffer;=|p_150788_1_,limitedTag
|
||||
|
|
Loading…
Reference in a new issue