Package xyz.xenondevs.invui.item.builder
Class FireworkBuilder
java.lang.Object
xyz.xenondevs.invui.item.builder.AbstractItemBuilder<FireworkBuilder>
xyz.xenondevs.invui.item.builder.FireworkBuilder
- All Implemented Interfaces:
Cloneable
,Supplier<@NotNull org.bukkit.inventory.ItemStack>
,ItemProvider
-
Field Summary
Fields inherited from class xyz.xenondevs.invui.item.builder.AbstractItemBuilder
amount, base, customModelData, damage, displayName, enchantments, itemFlags, lore, material, modifiers, unbreakable
Fields inherited from interface xyz.xenondevs.invui.item.ItemProvider
EMPTY
-
Constructor Summary
ConstructorDescriptionFireworkBuilder
(int amount) FireworkBuilder
(@NotNull org.bukkit.inventory.ItemStack base) -
Method Summary
Modifier and TypeMethodDescription@NotNull FireworkBuilder
addFireworkEffect
(@NotNull org.bukkit.FireworkEffect effect) @NotNull FireworkBuilder
addFireworkEffect
(org.bukkit.FireworkEffect.Builder builder) @NotNull FireworkBuilder
@NotNull FireworkBuilder
clone()
Clones this builder.@NotNull org.bukkit.inventory.ItemStack
Builds theItemStack
@NotNull FireworkBuilder
setFireworkEffects
(@NotNull List<@NotNull org.bukkit.FireworkEffect> effects) @NotNull FireworkBuilder
setPower
(@org.jetbrains.annotations.Range(from=0L, to=127L) int power) Methods inherited from class xyz.xenondevs.invui.item.builder.AbstractItemBuilder
addAllItemFlags, addEnchantment, addItemFlags, addLegacyLoreLines, addLoreLines, addLoreLines, addLoreLines, addLoreLines, addModifier, clearEnchantments, clearItemFlags, clearLore, clearModifiers, getAmount, getBase, getCustomModelData, getDamage, getDisplayName, getEnchantments, getItemFlags, getLore, getMaterial, getModifiers, isUnbreakable, removeEnchantment, removeItemFlags, removeLoreLine, setAmount, setCustomModelData, setDamage, setDisplayName, setDisplayName, setDisplayName, setEnchantments, setItemFlags, setLegacyLore, setLore, setMaterial, setUnbreakable
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface xyz.xenondevs.invui.item.ItemProvider
get
-
Constructor Details
-
FireworkBuilder
public FireworkBuilder() -
FireworkBuilder
public FireworkBuilder(int amount) -
FireworkBuilder
public FireworkBuilder(@NotNull @NotNull org.bukkit.inventory.ItemStack base)
-
-
Method Details
-
setPower
@Contract("_ -> this") @NotNull public @NotNull FireworkBuilder setPower(@org.jetbrains.annotations.Range(from=0L, to=127L) int power) -
addFireworkEffect
@Contract("_ -> this") @NotNull public @NotNull FireworkBuilder addFireworkEffect(@NotNull @NotNull org.bukkit.FireworkEffect effect) -
addFireworkEffect
@Contract("_ -> this") @NotNull public @NotNull FireworkBuilder addFireworkEffect(@NotNull org.bukkit.FireworkEffect.Builder builder) -
setFireworkEffects
@Contract("_ -> this") @NotNull public @NotNull FireworkBuilder setFireworkEffects(@NotNull @NotNull List<@NotNull org.bukkit.FireworkEffect> effects) -
clearFireworkEffects
-
get
@Contract(value="_ -> new", pure=true) @NotNull public @NotNull org.bukkit.inventory.ItemStack get(@Nullable @Nullable String lang) Description copied from class:AbstractItemBuilder
Builds theItemStack
- Specified by:
get
in interfaceItemProvider
- Overrides:
get
in classAbstractItemBuilder<FireworkBuilder>
- Parameters:
lang
- The language to translate the item in.- Returns:
- The
ItemStack
-
clone
Description copied from class:AbstractItemBuilder
Clones this builder.- Overrides:
clone
in classAbstractItemBuilder<FireworkBuilder>
- Returns:
- The cloned builder
-