@@ -1,12 +1,12 @@
|
||||
--- a/net/minecraft/server/EntityTippedArrow.java
|
||||
+++ b/net/minecraft/server/EntityTippedArrow.java
|
||||
@@ -115,6 +115,25 @@
|
||||
@@ -117,6 +117,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ // CraftBukkit start accessor methods
|
||||
+ public void refreshEffects() {
|
||||
+ this.getDataWatcher().set(EntityTippedArrow.g, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
|
||||
+ this.getDataWatcher().set(EntityTippedArrow.COLOR, PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects)));
|
||||
+ }
|
||||
+
|
||||
+ public String getType() {
|
||||
@@ -15,7 +15,7 @@
|
||||
+
|
||||
+ public void setType(String string) {
|
||||
+ this.potionRegistry = IRegistry.POTION.get(new MinecraftKey(string));
|
||||
+ this.datawatcher.set(EntityTippedArrow.g, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
|
||||
+ this.getDataWatcher().set(EntityTippedArrow.COLOR, PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects)));
|
||||
+ }
|
||||
+
|
||||
+ public boolean isTipped() {
|
||||
@@ -24,9 +24,9 @@
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public int getColor() {
|
||||
return (Integer) this.datawatcher.get(EntityTippedArrow.g);
|
||||
return (Integer) this.datawatcher.get(EntityTippedArrow.COLOR);
|
||||
}
|
||||
@@ -179,7 +198,7 @@
|
||||
@@ -184,7 +203,7 @@
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
mobeffect = (MobEffect) iterator.next();
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
|
||||
if (!this.effects.isEmpty()) {
|
||||
@@ -187,7 +206,7 @@
|
||||
@@ -192,7 +211,7 @@
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
mobeffect = (MobEffect) iterator.next();
|
||||
|
||||
Reference in New Issue
Block a user