@@ -10,11 +10,11 @@
|
||||
+ }
|
||||
+
|
||||
+ public String getPotionType() {
|
||||
+ return IRegistry.POTION.getKey(this.potion).toString();
|
||||
+ return BuiltInRegistries.POTION.getKey(this.potion).toString();
|
||||
+ }
|
||||
+
|
||||
+ public void setPotionType(String string) {
|
||||
+ this.potion = IRegistry.POTION.get(new net.minecraft.resources.MinecraftKey(string));
|
||||
+ this.potion = BuiltInRegistries.POTION.get(new net.minecraft.resources.MinecraftKey(string));
|
||||
+ this.getEntityData().set(EntityTippedArrow.ID_EFFECT_COLOR, PotionUtil.getColor((Collection) PotionUtil.getAllEffects(this.potion, (Collection) this.effects)));
|
||||
+ }
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user