mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 09:17:36 +01:00
Add getColor / setColor for TippedArrow
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
816701f233
commit
dc1f30d4f9
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user