Package org.geysermc.geyser.item
Record Class GeyserCustomItemOptions
java.lang.Object
java.lang.Record
org.geysermc.geyser.item.GeyserCustomItemOptions
- All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.CustomItemOptions
@Deprecated
public record GeyserCustomItemOptions(org.geysermc.geyser.api.util.TriState unbreakable, OptionalInt customModelData, OptionalInt damagePredicate, boolean defaultItem)
extends Record
implements org.geysermc.geyser.api.item.custom.CustomItemOptions
Deprecated.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGeyserCustomItemOptions(org.geysermc.geyser.api.util.TriState unbreakable, OptionalInt customModelData, OptionalInt damagePredicate, boolean defaultItem) Deprecated.Creates an instance of aGeyserCustomItemOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the value of thecustomModelDatarecord component.Deprecated.Returns the value of thedamagePredicaterecord component.booleanDeprecated.Returns the value of thedefaultItemrecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.final inthashCode()Deprecated.Returns a hash code value for this object.final StringtoString()Deprecated.Returns a string representation of this record class.org.geysermc.geyser.api.util.TriStateDeprecated.Returns the value of theunbreakablerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.geyser.api.item.custom.CustomItemOptions
hasCustomItemOptions
-
Constructor Details
-
GeyserCustomItemOptions
public GeyserCustomItemOptions(org.geysermc.geyser.api.util.TriState unbreakable, OptionalInt customModelData, OptionalInt damagePredicate, boolean defaultItem) Deprecated.Creates an instance of aGeyserCustomItemOptionsrecord class.- Parameters:
unbreakable- the value for theunbreakablerecord componentcustomModelData- the value for thecustomModelDatarecord componentdamagePredicate- the value for thedamagePredicaterecord componentdefaultItem- the value for thedefaultItemrecord component
-
-
Method Details
-
toString
Deprecated.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
unbreakable
public org.geysermc.geyser.api.util.TriState unbreakable()Deprecated.Returns the value of theunbreakablerecord component.- Specified by:
unbreakablein interfaceorg.geysermc.geyser.api.item.custom.CustomItemOptions- Returns:
- the value of the
unbreakablerecord component
-
customModelData
Deprecated.Returns the value of thecustomModelDatarecord component.- Specified by:
customModelDatain interfaceorg.geysermc.geyser.api.item.custom.CustomItemOptions- Returns:
- the value of the
customModelDatarecord component
-
damagePredicate
Deprecated.Returns the value of thedamagePredicaterecord component.- Specified by:
damagePredicatein interfaceorg.geysermc.geyser.api.item.custom.CustomItemOptions- Returns:
- the value of the
damagePredicaterecord component
-
defaultItem
public boolean defaultItem()Deprecated.Returns the value of thedefaultItemrecord component.- Specified by:
defaultItemin interfaceorg.geysermc.geyser.api.item.custom.CustomItemOptions- Returns:
- the value of the
defaultItemrecord component
-