Package net.raphimc.vialegacy.api.data
Record Class ItemList1_6.Item1_6
java.lang.Object
java.lang.Record
net.raphimc.vialegacy.api.data.ItemList1_6.Item1_6
- Enclosing class:
- ItemList1_6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasSubTypesrecord component.booleanintitemId()Returns the value of theitemIdrecord component.intReturns the value of themaxDamagerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Item1_6
Creates an instance of aItem1_6record class.- Parameters:
itemId- the value for theitemIdrecord componentname- the value for thenamerecord componentmaxDamage- the value for themaxDamagerecord componenthasSubTypes- the value for thehasSubTypesrecord component
-
-
Method Details
-
isDamageable
public boolean isDamageable() -
toString
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()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
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 '=='. -
itemId
public int itemId()Returns the value of theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
maxDamage
public int maxDamage()Returns the value of themaxDamagerecord component.- Returns:
- the value of the
maxDamagerecord component
-
hasSubTypes
public boolean hasSubTypes()Returns the value of thehasSubTypesrecord component.- Returns:
- the value of the
hasSubTypesrecord component
-