mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 23:22:10 -07:00
Add getColor / setColor for TippedArrow
By: Matthew <stteg@hotmail.com>
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user