Package xyz.xenondevs.invui.item.builder
Class BannerBuilder
java.lang.Object
xyz.xenondevs.invui.item.builder.AbstractItemBuilder<BannerBuilder>
xyz.xenondevs.invui.item.builder.BannerBuilder
- 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
ConstructorDescriptionBannerBuilder
(@NotNull org.bukkit.Material material) BannerBuilder
(@NotNull org.bukkit.Material material, int amount) BannerBuilder
(@NotNull org.bukkit.inventory.ItemStack base) -
Method Summary
Modifier and TypeMethodDescription@NotNull BannerBuilder
addPattern
(@NotNull org.bukkit.DyeColor color, @NotNull org.bukkit.block.banner.PatternType type) @NotNull BannerBuilder
addPattern
(@NotNull org.bukkit.block.banner.Pattern pattern) @NotNull BannerBuilder
@NotNull BannerBuilder
clone()
Clones this builder.@NotNull org.bukkit.inventory.ItemStack
Builds theItemStack
@NotNull BannerBuilder
setPatterns
(@NotNull List<@NotNull org.bukkit.block.banner.Pattern> patterns) 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
-
BannerBuilder
public BannerBuilder(@NotNull @NotNull org.bukkit.Material material) -
BannerBuilder
public BannerBuilder(@NotNull @NotNull org.bukkit.Material material, int amount) -
BannerBuilder
public BannerBuilder(@NotNull @NotNull org.bukkit.inventory.ItemStack base)
-
-
Method Details
-
addPattern
@Contract("_ -> this") @NotNull public @NotNull BannerBuilder addPattern(@NotNull @NotNull org.bukkit.block.banner.Pattern pattern) -
addPattern
@Contract("_, _ -> this") @NotNull public @NotNull BannerBuilder addPattern(@NotNull @NotNull org.bukkit.DyeColor color, @NotNull @NotNull org.bukkit.block.banner.PatternType type) -
setPatterns
@Contract("_ -> this") @NotNull public @NotNull BannerBuilder setPatterns(@NotNull @NotNull List<@NotNull org.bukkit.block.banner.Pattern> patterns) -
clearPatterns
-
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<BannerBuilder>
- 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<BannerBuilder>
- Returns:
- The cloned builder
-