Record Class Selector.Special.Head
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.resource.asset.definition.Selector.Special.Head
- All Implemented Interfaces:
Selector.Special.Type
- Enclosing class:
Selector.Special
public static record Selector.Special.Head(HeadType kind, Texture texture, int animationTime)
extends Record
implements Selector.Special.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theanimationTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()kind()Returns the value of thekindrecord component.texture()Returns the value of thetexturerecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Head
Creates an instance of aHeadrecord class.- Parameters:
kind- the value for thekindrecord componenttexture- the value for thetexturerecord componentanimationTime- the value for theanimationTimerecord component
-
-
Method Details
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
id
- Specified by:
idin interfaceSelector.Special.Type
-
toJson
- Specified by:
toJsonin interfaceSelector.Special.Type
-
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 '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
animationTime
public int animationTime()Returns the value of theanimationTimerecord component.- Returns:
- the value of the
animationTimerecord component
-