@@ -6,16 +6,16 @@
|
||||
|
||||
+ // CraftBukkit start accessor methods
|
||||
+ public void refreshEffects() {
|
||||
+ this.getDataWatcher().set(EntityTippedArrow.f, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
|
||||
+ this.getDataWatcher().set(EntityTippedArrow.g, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
|
||||
+ }
|
||||
+
|
||||
+ public String getType() {
|
||||
+ return ((MinecraftKey) PotionRegistry.a.b(this.potionRegistry)).toString();
|
||||
+ return IRegistry.POTION.getKey(this.potionRegistry).toString();
|
||||
+ }
|
||||
+
|
||||
+ public void setType(String string) {
|
||||
+ this.potionRegistry = PotionRegistry.a.get(new MinecraftKey(string));
|
||||
+ this.datawatcher.set(EntityTippedArrow.f, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
|
||||
+ 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))));
|
||||
+ }
|
||||
+
|
||||
+ public boolean isTipped() {
|
||||
@@ -24,7 +24,7 @@
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public int getColor() {
|
||||
return ((Integer) this.datawatcher.get(EntityTippedArrow.f)).intValue();
|
||||
return ((Integer) this.datawatcher.get(EntityTippedArrow.g)).intValue();
|
||||
}
|
||||
@@ -180,7 +199,7 @@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user