diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/TippedArrow.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/TippedArrow.java b/src/main/java/org/bukkit/entity/TippedArrow.java index 86666173..09b5dd43 100644 --- a/src/main/java/org/bukkit/entity/TippedArrow.java +++ b/src/main/java/org/bukkit/entity/TippedArrow.java @@ -2,6 +2,7 @@ package org.bukkit.entity; import java.util.List; +import org.bukkit.Color; import org.bukkit.potion.PotionData; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; @@ -23,6 +24,20 @@ public interface TippedArrow extends Arrow { PotionData getBasePotionData(); /** + * Gets the color of this arrow. + * + * @return arrow color + */ + Color getColor(); + + /** + * Sets the color of this arrow. Will be applied as a tint to its particles. + * + * @param color arrow color + */ + void setColor(Color color); + + /** * Checks for the presence of custom potion effects. * * @return true if custom potion effects are applied |