Class CustomHatItem.Builder
java.lang.Object
com.github.imdabigboss.easydatapack.api.items.CustomItem.Builder
com.github.imdabigboss.easydatapack.api.items.CustomHatItem.Builder
- Enclosing class:
- CustomHatItem
This class represents a builder for a custom hat item.
-
Field Summary
Fields inherited from class com.github.imdabigboss.easydatapack.api.items.CustomItem.Builder
allowedEnchantments, attributeModifiers, baseMaterial, customModelData, enchantments, eventListener, forbiddenEnchantments, hideFlags, itemUseEvent, lore, name, namespaceKey, newItem, spacingBeforeLore, unbreakable -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.imdabigboss.easydatapack.api.items.CustomItem.Builder
allowedEnchantment, attributeModifier, enchantment, eventListener, forbiddenEnchantment, hideFlags, itemUseEvent, lore, lore, newItem, unbreakable
-
Constructor Details
-
Builder
public Builder(int customModelData, @NonNull String namespaceKey, @NonNull String name, @NonNull org.bukkit.Material baseMaterial)Creates a new builder for a custom hat item.- Parameters:
customModelData- the custom model data of the itemnamespaceKey- the namespace key of the itemname- the name of the itembaseMaterial- the base material of the item
-
-
Method Details
-
build
Builds the custom hat item.- Overrides:
buildin classCustomItem.Builder- Returns:
- the custom hat item
-