Record Class Selector.Special.Bed
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Special.Bed
- All Implemented Interfaces:
Selector.Special.Type
- Enclosing class:
Selector.Special
public static record Selector.Special.Bed(Texture texture, Selector.Special.Bed.Part part)
extends Record
implements Selector.Special.Type
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBed(Texture texture, Selector.Special.Bed.Part part) Creates an instance of aBedrecord 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.id()part()Returns the value of thepartrecord component.texture()Returns the value of thetexturerecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Bed
Creates an instance of aBedrecord class.- Parameters:
texture- the value for thetexturerecord componentpart- the value for thepartrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-