Uses of Class
tech.guilhermekaua.spigotboot.core.spigot.utils.ItemBuilder
Packages that use ItemBuilder
-
Uses of ItemBuilder in tech.guilhermekaua.spigotboot.core.spigot.utils
Methods in tech.guilhermekaua.spigotboot.core.spigot.utils that return ItemBuilderModifier and TypeMethodDescriptionAdds a string to the lore of the ItemStack at the given index.Adds some strings to the lore of the ItemStack.ItemBuilder.changeItemMeta(Consumer<org.bukkit.inventory.meta.ItemMeta> consumer) Changes the ItemMeta of the ItemStack using the given Consumer function.ItemBuilder.deleteLoreLine(int index) Deletes a string from the lore of the ItemStack at the given index.Replaces the current item with a player head owned by the named player.Replaces the current item with a player head skinned from a Mojang texture URL.Replaces the current item with a player head owned by the player with the given UUID string.Replaces the current item with a player head owned by the player with the given UUID.static ItemBuilderCreates anItemBuilderwrapping a player head resolved from either a Mojang texture URL or a player name.static ItemBuilderItemBuilder.ofMaterial(String... candidates) Resolves the firstMaterialthat matches one of the given config names (modern name first, legacy fallback viaTypeUtil.getMaterialFromLegacy(String)), falling back toMaterial.STONEwhen none resolve — so a GUI never fails to render an item.ItemBuilder.placeholder(String placeholder, String value) Replaces a placeholder in the lore of the ItemStack with a given value.ItemBuilder.setAmount(int amount) Sets the stack size, clamped to at least 1.ItemBuilder.setCustomModelData(Integer data) Sets the custom model data.ItemBuilder.setCustomModelDataColors(org.bukkit.Color... colors) Sets custom model data component tint colors.ItemBuilder.setCustomModelDataComponent(List<Float> floats, List<Boolean> flags, List<String> strings, List<org.bukkit.Color> colors) Sets custom model data component values on servers that expose that API.ItemBuilder.setCustomModelDataFlags(Boolean... flags) Sets custom model data component boolean flag values.ItemBuilder.setCustomModelDataFloats(Float... floats) Sets custom model data component float values.ItemBuilder.setCustomModelDataStrings(String... strings) Sets custom model data component string values.ItemBuilder.setGlow(boolean glow) ItemBuilder.setItem(org.bukkit.inventory.ItemStack item) ItemBuilder.setItemModel(String itemModel) Sets the direct item model key on servers that expose that API.ItemBuilder.setLegacyModelData(Integer data) Sets the legacy durability/data value used by old pre-flattening item variants.Replaces a string in the lore of the ItemStack at the given index.Sets the lore of the ItemStack.Sets the lore of the ItemStack.ItemBuilder.setMaterial(String... candidates) Sets the display name of the ItemStack.ItemBuilder.setRawLore(String... lore) Sets the lore verbatim, without colour translation — for lines that are already formatted.ItemBuilder.setRawLore(List<String> lore) Sets the lore verbatim, without colour translation — for lines that are already formatted.ItemBuilder.setRawName(String name) Sets the display name verbatim, without colour translation — for names that are already formatted (e.g.