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
-
-
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
-
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. -
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
-