Record Class TextureResolver.DefaultResolvedTextureData
java.lang.Object
java.lang.Record
net.litetex.capes.handler.textures.TextureResolver.DefaultResolvedTextureData
- All Implemented Interfaces:
TextureResolver.ResolvedTextureData
- Enclosing interface:
TextureResolver
public static record TextureResolver.DefaultResolvedTextureData(net.minecraft.client.texture.NativeImage texture, Boolean hasElytra)
extends Record
implements TextureResolver.ResolvedTextureData
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultResolvedTextureData(net.minecraft.client.texture.NativeImage texture, Boolean hasElytra) Creates an instance of aDefaultResolvedTextureDatarecord 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.net.minecraft.client.texture.NativeImagetexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultResolvedTextureData
public DefaultResolvedTextureData(net.minecraft.client.texture.NativeImage texture, Boolean hasElytra) Creates an instance of aDefaultResolvedTextureDatarecord class.- Parameters:
texture- the value for thetexturerecord 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). -
texture
public net.minecraft.client.texture.NativeImage texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
hasElytra
Returns the value of thehasElytrarecord component.- Specified by:
hasElytrain interfaceTextureResolver.ResolvedTextureData- Returns:
- the value of the
hasElytrarecord component
-