Record Class ExtendedInventoryClientHandler.ExtraInventoryClientSettings
java.lang.Object
java.lang.Record
com.petrolpark.core.extendedinventory.ExtendedInventoryClientHandler.ExtraInventoryClientSettings
- Enclosing class:
ExtendedInventoryClientHandler
public static record ExtendedInventoryClientHandler.ExtraInventoryClientSettings(boolean left, int width, ExtendedInventoryClientHandler.ExtraHotbarSlotLocations loc, int hotbarCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExtraInventoryClientSettings(boolean left, int width, ExtendedInventoryClientHandler.ExtraHotbarSlotLocations loc, int hotbarCount) Creates an instance of aExtraInventoryClientSettingsrecord class. -
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.intReturns the value of thehotbarCountrecord component.booleanleft()Returns the value of theleftrecord component.loc()Returns the value of thelocrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
ExtraInventoryClientSettings
public ExtraInventoryClientSettings(boolean left, int width, ExtendedInventoryClientHandler.ExtraHotbarSlotLocations loc, int hotbarCount) Creates an instance of aExtraInventoryClientSettingsrecord class.- Parameters:
left- the value for theleftrecord componentwidth- the value for thewidthrecord componentloc- the value for thelocrecord componenthotbarCount- the value for thehotbarCountrecord component
-
-
Method Details
-
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 '=='. -
left
public boolean left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
loc
Returns the value of thelocrecord component.- Returns:
- the value of the
locrecord component
-
hotbarCount
public int hotbarCount()Returns the value of thehotbarCountrecord component.- Returns:
- the value of the
hotbarCountrecord component
-