Interface CustomItemOptions
public interface CustomItemOptions
This class represents the different ways you can register custom items
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomItemOptions.Builderbuilder()@NonNull OptionalIntGets the item's custom model data predicate.@NonNull OptionalIntGets the item's damage predicate.default booleanChecks if the item has at least one option set@NonNull TriStateGets if the item should be unbreakable.
-
Method Details
-
unbreakable
@NonNull TriState unbreakable()Gets if the item should be unbreakable.- Returns:
- if the item should be unbreakable
-
customModelData
@NonNull OptionalInt customModelData()Gets the item's custom model data predicate.- Returns:
- the item's custom model data
-
damagePredicate
@NonNull OptionalInt damagePredicate()Gets the item's damage predicate.- Returns:
- the item's damage predicate
-
hasCustomItemOptions
default boolean hasCustomItemOptions()Checks if the item has at least one option set- Returns:
- true if the item at least one options set
-
builder
-