Potion Item
Represents a custom potion item with customizable effects, color, and type.
This class allows the creation of potions with different effects, colors, and types (regular, splash, or lingering). The potion can also be customized with various lore, glow effects, and unbreakable properties. The created potion item can be used as a CustomItem and can be registered and given to players.
Parameters
The name of the potion item.
The base potion type (default is PotionType.WATER).
Whether the potion should be a splash potion (default is false
).
Whether the potion should be a lingering potion (default is false
).
Functions
Builds and returns the CustomItem representation of the potion item.
Sets the color of the potion.
Adds a glowing effect to the potion item.
Adds lore to the potion item.
Marks the potion item as unbreakable.