From dc1f30d4f98f90140191bb2ce8bc372691a8b8b1 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 26 Apr 2017 20:22:23 -0400 Subject: [PATCH] Add getColor / setColor for TippedArrow By: Matthew --- .../main/java/org/bukkit/entity/TippedArrow.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/TippedArrow.java b/paper-api/src/main/java/org/bukkit/entity/TippedArrow.java index 866661734f..09b5dd43c4 100644 --- a/paper-api/src/main/java/org/bukkit/entity/TippedArrow.java +++ b/paper-api/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; @@ -22,6 +23,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. *