geforkt von Mirrors/Paper
SPIGOT-2782: Custom Colors for Potions
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
663f0fc229
Commit
77cd4eb79a
@ -1,5 +1,6 @@
|
|||||||
package org.bukkit.inventory.meta;
|
package org.bukkit.inventory.meta;
|
||||||
|
|
||||||
|
import org.bukkit.Color;
|
||||||
import org.bukkit.potion.PotionEffect;
|
import org.bukkit.potion.PotionEffect;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
import org.bukkit.potion.PotionData;
|
import org.bukkit.potion.PotionData;
|
||||||
@ -89,6 +90,32 @@ public interface PotionMeta extends ItemMeta {
|
|||||||
*/
|
*/
|
||||||
boolean clearCustomEffects();
|
boolean clearCustomEffects();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks for existence of a potion color.
|
||||||
|
*
|
||||||
|
* @return true if this has a custom potion color
|
||||||
|
*/
|
||||||
|
boolean hasColor();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the potion color that is set. A custom potion color will alter the
|
||||||
|
* display of the potion in an inventory slot.
|
||||||
|
* <p>
|
||||||
|
* Plugins should check that hasColor() returns <code>true</code> before
|
||||||
|
* calling this method.
|
||||||
|
*
|
||||||
|
* @return the potion color that is set
|
||||||
|
*/
|
||||||
|
Color getColor();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the potion color. A custom potion color will alter the display of
|
||||||
|
* the potion in an inventory slot.
|
||||||
|
*
|
||||||
|
* @param color the color to set
|
||||||
|
*/
|
||||||
|
void setColor(Color color);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
PotionMeta clone();
|
PotionMeta clone();
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren