Record Class TextureResolver.AnimatedResolvedTextureData
java.lang.Object
java.lang.Record
net.litetex.capes.handler.textures.TextureResolver.AnimatedResolvedTextureData
- All Implemented Interfaces:
TextureResolver.ResolvedTextureData
- Enclosing interface:
TextureResolver
public static record TextureResolver.AnimatedResolvedTextureData(List<AnimatedNativeImageContainer> textures, Boolean hasElytra)
extends Record
implements TextureResolver.ResolvedTextureData
-
Constructor Summary
ConstructorsConstructorDescriptionAnimatedResolvedTextureData(List<AnimatedNativeImageContainer> textures, Boolean hasElytra) Creates an instance of aAnimatedResolvedTextureDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thehasElytrarecord component.final inthashCode()Returns a hash code value for this object.textures()Returns the value of thetexturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnimatedResolvedTextureData
-
AnimatedResolvedTextureData
Creates an instance of aAnimatedResolvedTextureDatarecord class.- Parameters:
textures- the value for thetexturesrecord componenthasElytra- the value for thehasElytrarecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-
hasElytra
Returns the value of thehasElytrarecord component.- Specified by:
hasElytrain interfaceTextureResolver.ResolvedTextureData- Returns:
- the value of the
hasElytrarecord component
-