Record Class ContainerTypeInfoRegistry.ContainerTypeInfo
java.lang.Object
java.lang.Record
com.zenith.mc.item.ContainerTypeInfoRegistry.ContainerTypeInfo
- Enclosing class:
ContainerTypeInfoRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionContainerTypeInfo(String ascii, int totalSlots, int topSlots, int bottomSlots) Creates an instance of aContainerTypeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionascii()Returns the value of theasciirecord component.intReturns the value of thebottomSlotsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inttopSlots()Returns the value of thetopSlotsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalSlotsrecord component.
-
Constructor Details
-
ContainerTypeInfo
Creates an instance of aContainerTypeInforecord class.- Parameters:
ascii- the value for theasciirecord componenttotalSlots- the value for thetotalSlotsrecord componenttopSlots- the value for thetopSlotsrecord componentbottomSlots- the value for thebottomSlotsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
ascii
Returns the value of theasciirecord component.- Returns:
- the value of the
asciirecord component
-
totalSlots
public int totalSlots()Returns the value of thetotalSlotsrecord component.- Returns:
- the value of the
totalSlotsrecord component
-
topSlots
public int topSlots()Returns the value of thetopSlotsrecord component.- Returns:
- the value of the
topSlotsrecord component
-
bottomSlots
public int bottomSlots()Returns the value of thebottomSlotsrecord component.- Returns:
- the value of the
bottomSlotsrecord component
-