mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
Add getColor / setColor for TippedArrow
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
816701f233
commit
dc1f30d4f9
1 changed files with 15 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue