diff options
author | Matthew <stteg@hotmail.com> | 2017-04-26 20:28:27 -0400 |
---|---|---|
committer | Matthew <stteg@hotmail.com> | 2017-04-26 20:28:27 -0400 |
commit | 55a1f9ff12e69ef036ae999dc8cf63f2622cc873 (patch) | |
tree | e4b5f2c6fefcd561a3a940edb9a00ffe1c7eda15 /src/main/java/org/bukkit | |
parent | 2453830549e6f1cfe33dc20d5ac6d96a043bdddf (diff) | |
download | craftbukkit-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 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftTippedArrow.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftTippedArrow.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftTippedArrow.java index 7a5f50f4..955954fc 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftTippedArrow.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftTippedArrow.java @@ -3,6 +3,7 @@ package org.bukkit.craftbukkit.entity; import java.util.List; import org.apache.commons.lang.Validate; +import org.bukkit.Color; import org.bukkit.craftbukkit.CraftServer; import org.bukkit.craftbukkit.potion.CraftPotionUtil; import org.bukkit.entity.EntityType; @@ -119,4 +120,14 @@ public class CraftTippedArrow extends CraftArrow implements TippedArrow { public PotionData getBasePotionData() { return CraftPotionUtil.toBukkit(getHandle().getType()); } + + @Override + public void setColor(Color color) { + getHandle().d(color.asRGB()); + } + + @Override + public Color getColor() { + return Color.fromRGB(getHandle().o()); + } } |