summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityTippedArrow.patch
diff options
context:
space:
mode:
authorMatthew <stteg@hotmail.com>2017-04-26 20:28:27 -0400
committerMatthew <stteg@hotmail.com>2017-04-26 20:28:27 -0400
commit55a1f9ff12e69ef036ae999dc8cf63f2622cc873 (patch)
treee4b5f2c6fefcd561a3a940edb9a00ffe1c7eda15 /nms-patches/EntityTippedArrow.patch
parent2453830549e6f1cfe33dc20d5ac6d96a043bdddf (diff)
downloadcraftbukkit-55a1f9ff12e69ef036ae999dc8cf63f2622cc873.tar
craftbukkit-55a1f9ff12e69ef036ae999dc8cf63f2622cc873.tar.gz
craftbukkit-55a1f9ff12e69ef036ae999dc8cf63f2622cc873.tar.lz
craftbukkit-55a1f9ff12e69ef036ae999dc8cf63f2622cc873.tar.xz
craftbukkit-55a1f9ff12e69ef036ae999dc8cf63f2622cc873.zip
Implement getColor / setColor for TippedArrow
Diffstat (limited to 'nms-patches/EntityTippedArrow.patch')
-rw-r--r--nms-patches/EntityTippedArrow.patch11
1 files changed, 9 insertions, 2 deletions
diff --git a/nms-patches/EntityTippedArrow.patch b/nms-patches/EntityTippedArrow.patch
index 9e211602..83722039 100644
--- a/nms-patches/EntityTippedArrow.patch
+++ b/nms-patches/EntityTippedArrow.patch
@@ -1,9 +1,10 @@
--- a/net/minecraft/server/EntityTippedArrow.java
+++ b/net/minecraft/server/EntityTippedArrow.java
-@@ -116,6 +116,25 @@
+@@ -116,11 +116,30 @@
}
}
+- public int o() {
+ // CraftBukkit start accessor methods
+ public void refreshEffects() {
+ this.getDataWatcher().set(EntityTippedArrow.f, Integer.valueOf(PotionUtil.a((Collection) PotionUtil.a(this.potionRegistry, (Collection) this.effects))));
@@ -23,6 +24,12 @@
+ }
+ // CraftBukkit end
+
- public int o() {
++ public int o() { // PAIL: rename getColor
return ((Integer) this.datawatcher.get(EntityTippedArrow.f)).intValue();
}
+
+- private void d(int i) {
++ public void d(int i) { // PAIL: private -> public, rename setColor
+ this.at = true;
+ this.datawatcher.set(EntityTippedArrow.f, Integer.valueOf(i));
+ }