Class PotionUtils
java.lang.Object
org.skriptlang.skript.bukkit.potion.util.PotionUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA string representation of aTimespanofDEFAULT_DURATION_TICKS.static final int30 seconds is the default length for the /effect command See https://minecraft.wiki/w/Commands/effect -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Deque<org.bukkit.potion.PotionEffect> getHiddenEffects(org.bukkit.potion.PotionEffect effect) A utility method to obtain the hidden effects of a potion effect.
-
Field Details
-
DEFAULT_DURATION_TICKS
public static final int DEFAULT_DURATION_TICKS30 seconds is the default length for the /effect command See https://minecraft.wiki/w/Commands/effect- See Also:
-
DEFAULT_DURATION_STRING
A string representation of aTimespanofDEFAULT_DURATION_TICKS.
-
-
Constructor Details
-
PotionUtils
public PotionUtils()
-
-
Method Details
-
getHiddenEffects
public static Deque<org.bukkit.potion.PotionEffect> getHiddenEffects(org.bukkit.potion.PotionEffect effect) A utility method to obtain the hidden effects of a potion effect.- Parameters:
effect- The effect to obtain hidden effects from.- Returns:
- A deque of the hidden effects of
effectordered from most hidden to least hidden.
-