Package dev.triumphteam.gui.builder.item
Class ItemBuilder
java.lang.Object
dev.triumphteam.gui.builder.item.BaseItemBuilder<ItemBuilder>
dev.triumphteam.gui.builder.item.ItemBuilder
Main ItemBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BannerBuilderbanner()Method for creating aBannerBuilderwhich will have BANNER specific methodsstatic @NotNull BannerBuilderbanner(@NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aBannerBuilderwhich will have BANNER specific methodsstatic @NotNull BookBuilderbook(@NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aBookBuilderwhich will haveMaterial.WRITABLE_BOOK/Material.WRITTEN_BOOKspecific methodsstatic @NotNull FireworkBuilderfirework()Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_ROCKETspecific methodsstatic @NotNull FireworkBuilderfirework(@NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_ROCKETspecific methodsstatic @NotNull ItemBuilderfrom(@NotNull org.bukkit.Material material) Alternative method to createItemBuilderstatic @NotNull ItemBuilderfrom(@NotNull org.bukkit.inventory.ItemStack itemStack) Main method to createItemBuilderstatic @NotNull MapBuildermap()Method for creating aMapBuilderwhich will haveMaterial.MAPspecific methodsstatic @NotNull MapBuildermap(@NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aMapBuilderwhich will have @link Material#MAP} specific methodssetSkullOwner(@NotNull org.bukkit.OfflinePlayer player) Deprecated.setSkullTexture(@NotNull String texture) Deprecated.In favor ofSkullBuilder.texture(String), nothing changed just the name, will be removed in 3.0.1static @NotNull SkullBuilderskull()Method for creating aSkullBuilderwhich will have PLAYER_HEAD specific methodsstatic @NotNull SkullBuilderskull(@NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aSkullBuilderwhich will have PLAYER_HEAD specific methodsstatic @NotNull FireworkBuilderstar()Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_STARspecific methodsstatic @NotNull FireworkBuilderstar(@NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_STARspecific methodsMethods inherited from class dev.triumphteam.gui.builder.item.BaseItemBuilder
addEnchantment, addEnchantment, addEnchantment, addItemFlags, addLore, addLore, amount, asGuiItem, asGuiItem, build, color, disenchant, enchant, enchant, enchant, enchant, enchant, flags, getItemStack, getMeta, glow, glow, lore, lore, lore, model, name, pdc, removeEnchantment, removeNbt, setAmount, setItemStack, setLore, setLore, setMeta, setName, setNbt, setNbt, setUnbreakable, unbreakable, unbreakable
-
Method Details
-
from
@NotNull @Contract("_ -> new") public static @NotNull ItemBuilder from(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Main method to createItemBuilder- Parameters:
itemStack- TheItemStackyou want to edit- Returns:
- A new
ItemBuilder
-
from
@NotNull @Contract("_ -> new") public static @NotNull ItemBuilder from(@NotNull @NotNull org.bukkit.Material material) Alternative method to createItemBuilder- Parameters:
material- TheMaterialyou want to create an item from- Returns:
- A new
ItemBuilder
-
banner
Method for creating aBannerBuilderwhich will have BANNER specific methods- Returns:
- A new
BannerBuilder - Since:
- 3.0.1
-
banner
@NotNull @Contract("_ -> new") public static @NotNull BannerBuilder banner(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aBannerBuilderwhich will have BANNER specific methods- Parameters:
itemStack- An existing BANNERItemStack- Returns:
- A new
BannerBuilder - Throws:
GuiException- if the item is not a BANNER- Since:
- 3.0.1
-
book
@NotNull @Contract("_ -> new") public static @NotNull BookBuilder book(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aBookBuilderwhich will haveMaterial.WRITABLE_BOOK/Material.WRITTEN_BOOKspecific methods- Parameters:
itemStack- an existingMaterial.WRITABLE_BOOK/Material.WRITTEN_BOOKItemStack- Returns:
- A new
FireworkBuilder - Throws:
GuiException- if the item type is notMaterial.WRITABLE_BOOKorMaterial.WRITTEN_BOOK- Since:
- 3.0.1
-
firework
Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_ROCKETspecific methods- Returns:
- A new
FireworkBuilder - Since:
- 3.0.1
-
firework
@NotNull @Contract("_ -> new") public static @NotNull FireworkBuilder firework(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_ROCKETspecific methods- Parameters:
itemStack- an existingMaterial.FIREWORK_ROCKETItemStack- Returns:
- A new
FireworkBuilder - Throws:
GuiException- if the item type is notMaterial.FIREWORK_ROCKET- Since:
- 3.0.1
-
map
Method for creating aMapBuilderwhich will haveMaterial.MAPspecific methods- Returns:
- A new
MapBuilder - Since:
- 3.0.1
-
map
@NotNull @Contract("_ -> new") public static @NotNull MapBuilder map(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aMapBuilderwhich will have @link Material#MAP} specific methods- Parameters:
itemStack- An existingMaterial.MAPItemStack- Returns:
- A new
MapBuilder - Throws:
GuiException- if the item type is notMaterial.MAP- Since:
- 3.0.1
-
skull
Method for creating aSkullBuilderwhich will have PLAYER_HEAD specific methods- Returns:
- A new
SkullBuilder
-
skull
@NotNull @Contract("_ -> new") public static @NotNull SkullBuilder skull(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aSkullBuilderwhich will have PLAYER_HEAD specific methods- Parameters:
itemStack- An existing PLAYER_HEADItemStack- Returns:
- A new
SkullBuilder - Throws:
GuiException- if the item is not a player head
-
star
Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_STARspecific methods- Returns:
- A new
FireworkBuilder - Since:
- 3.0.1
-
star
@NotNull @Contract("_ -> new") public static @NotNull FireworkBuilder star(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Method for creating aFireworkBuilderwhich will haveMaterial.FIREWORK_STARspecific methods- Parameters:
itemStack- an existingMaterial.FIREWORK_STARItemStack- Returns:
- A new
FireworkBuilder - Throws:
GuiException- if the item type is notMaterial.FIREWORK_STAR- Since:
- 3.0.1
-
setSkullTexture
Deprecated.In favor ofSkullBuilder.texture(String), nothing changed just the name, will be removed in 3.0.1Sets the skull texture- Parameters:
texture- The base64 texture- Returns:
ItemBuilder
-
setSkullOwner
Deprecated.In favor ofSkullBuilder.owner(OfflinePlayer), nothing changed just the name, will be removed in 3.0.1Sets skull owner via bukkit methods- Parameters:
player-OfflinePlayerto set skull of- Returns:
ItemBuilder
-
SkullBuilder.owner(OfflinePlayer), nothing changed just the name, will be removed in 3.0.1