Package com.marcusslover.plus.lib.potion
Class Potion
java.lang.Object
com.marcusslover.plus.lib.potion.Potion
- All Implemented Interfaces:
IApplicable<org.bukkit.entity.LivingEntity,Potion>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Potionapply(@NotNull org.bukkit.entity.LivingEntity entity) static @NotNull Potionof(@NotNull org.bukkit.potion.PotionEffectType type) static @NotNull Potionof(@NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier) static @NotNull Potionof(@NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles) static @NotNull Potionof(@NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles, boolean transparent) static @NotNull Potionof(@NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles, boolean transparent, boolean icon) static @NotNull Potionof(@NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles, boolean transparent, boolean icon, boolean force) @NotNull org.bukkit.potion.PotionEffectConverts this potion to aPotionEffect.
-
Field Details
-
type
@NotNull protected @NotNull org.bukkit.potion.PotionEffectType type -
duration
protected int duration -
amplifier
protected int amplifier -
particles
protected boolean particles -
transparent
protected boolean transparent -
icon
protected boolean icon -
force
protected boolean force
-
-
Constructor Details
-
Potion
public Potion()
-
-
Method Details
-
of
@NotNull public static @NotNull Potion of(@NotNull @NotNull org.bukkit.potion.PotionEffectType type) -
of
@NotNull public static @NotNull Potion of(@NotNull @NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier) -
of
@NotNull public static @NotNull Potion of(@NotNull @NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles) -
of
@NotNull public static @NotNull Potion of(@NotNull @NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles, boolean transparent) -
of
@NotNull public static @NotNull Potion of(@NotNull @NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles, boolean transparent, boolean icon) -
of
@NotNull public static @NotNull Potion of(@NotNull @NotNull org.bukkit.potion.PotionEffectType type, int durationTicks, int amplifier, boolean particles, boolean transparent, boolean icon, boolean force) -
potionEffect
@NotNull public @NotNull org.bukkit.potion.PotionEffect potionEffect()Converts this potion to aPotionEffect.- Returns:
- the potion effect
-
apply
- Specified by:
applyin interfaceIApplicable<org.bukkit.entity.LivingEntity,Potion>
-