Record Class Selector.Special.Chest
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Special.Chest
- All Implemented Interfaces:
Selector.Special.Type
- Enclosing class:
Selector.Special
public static record Selector.Special.Chest(Texture texture, int openness, @Nullable Selector.Special.Chest.ChestType chestType)
extends Record
implements Selector.Special.Type
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChest(Texture texture, int openness, Selector.Special.Chest.ChestType chestType) Creates an instance of aChestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechestTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()intopenness()Returns the value of theopennessrecord component.texture()Returns the value of thetexturerecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Chest
-
Chest
Creates an instance of aChestrecord class.- Parameters:
texture- the value for thetexturerecord componentopenness- the value for theopennessrecord componentchestType- the value for thechestTyperecord component
-
-
Method Details
-
id
- Specified by:
idin interfaceSelector.Special.Type
-
toJson
- Specified by:
toJsonin interfaceSelector.Special.Type
-
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. -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
openness
public int openness()Returns the value of theopennessrecord component.- Returns:
- the value of the
opennessrecord component
-
chestType
Returns the value of thechestTyperecord component.- Returns:
- the value of the
chestTyperecord component
-