Add getColor / setColor for TippedArrow

By: Matthew <stteg@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2017-04-26 20:22:23 -04:00
parent 816701f233
commit dc1f30d4f9

View File

@ -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.
*