Record Class Style
java.lang.Object
java.lang.Record
cromveil.combatnumbers.styles.Style
public record Style(@Nullable net.minecraft.resources.Identifier skinId, @Nullable net.minecraft.resources.Identifier animationId)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStyle(@Nullable net.minecraft.resources.Identifier skinId, @Nullable net.minecraft.resources.Identifier animationId) Creates an instance of aStylerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.resources.IdentifierReturns the value of theanimationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable net.minecraft.resources.IdentifierskinId()Returns the value of theskinIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Style
public Style(@Nullable net.minecraft.resources.Identifier skinId, @Nullable net.minecraft.resources.Identifier animationId) Creates an instance of aStylerecord class.- Parameters:
skinId- the value for theskinIdrecord componentanimationId- the value for theanimationIdrecord component
-
-
Method Details
-
merge
-
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). -
skinId
public @Nullable net.minecraft.resources.Identifier skinId()Returns the value of theskinIdrecord component.- Returns:
- the value of the
skinIdrecord component
-
animationId
public @Nullable net.minecraft.resources.Identifier animationId()Returns the value of theanimationIdrecord component.- Returns:
- the value of the
animationIdrecord component
-