Uses of Class
com.github.imdabigboss.easydatapack.api.items.CustomItem.Builder
Packages that use CustomItem.Builder
-
Uses of CustomItem.Builder in com.github.imdabigboss.easydatapack.api.items
Subclasses of CustomItem.Builder in com.github.imdabigboss.easydatapack.api.itemsModifier and TypeClassDescriptionstatic classThis class represents a builder for a custom hat item.static classThis class represents a builder for a custom tool item.Methods in com.github.imdabigboss.easydatapack.api.items that return CustomItem.BuilderModifier and TypeMethodDescription@NonNull CustomItem.BuilderCustomItem.Builder.allowedEnchantment(@NonNull org.bukkit.enchantments.Enchantment... enchantments)Adds an allowed enchantment to the item, this can be used if the base material doesn't allow the enchantment by default.@NonNull CustomItem.BuilderCustomItem.Builder.attributeModifier(@NonNull org.bukkit.attribute.Attribute attribute, @NonNull org.bukkit.attribute.AttributeModifier attributeModifier)Adds an attribute modifier to the item.@NonNull CustomItem.BuilderCustomItem.Builder.enchantment(@NonNull org.bukkit.enchantments.Enchantment enchantment, int level)Adds an enchantment to the item.@NonNull CustomItem.BuilderCustomItem.Builder.eventListener(@Nullable Class<? extends org.bukkit.event.Listener> eventListener)Sets the event listener of the item.@NonNull CustomItem.BuilderCustomItem.Builder.forbiddenEnchantment(@NonNull org.bukkit.enchantments.Enchantment... enchantments)Adds a forbidden enchantment to the item, this can be used if the base material allows the enchantment by default.@NonNull CustomItem.BuilderCustomItem.Builder.hideFlags(boolean hideFlags)Sets if the item hides flags.@NonNull CustomItem.BuilderCustomItem.Builder.itemUseEvent(@Nullable Consumer<org.bukkit.event.player.PlayerInteractEvent> itemUseEvent)Sets the event listener of the item.@NonNull CustomItem.BuilderSets the item lore.@NonNull CustomItem.BuilderSets the item lore.@NonNull CustomItem.BuilderCustomItem.Builder.newItem(boolean newItem)Sets if the item is a new item or if it is an extension of an existing item.@NonNull CustomItem.BuilderCustomItem.Builder.unbreakable(boolean unbreakable)Sets if the item is unbreakable.