Package net.minecraft.client.texture
Record Class TextureStitcher.Holder<T extends TextureStitcher.Stitchable>
java.lang.Object
java.lang.Record
net.minecraft.client.texture.TextureStitcher.Holder<T>
- Record Components:
sprite-width-height-
- Enclosing class:
TextureStitcher<T extends TextureStitcher.Stitchable>
@Environment(CLIENT)
private static record TextureStitcher.Holder<T extends TextureStitcher.Stitchable>(T extends TextureStitcher.Stitchable sprite, int width, int height)
extends Record
- Mappings:
Namespace Name official fuh$bintermediary net/minecraft/class_1055$class_1056named net/minecraft/client/texture/TextureStitcher$Holderofficial aintermediary comp_1046named spriteofficial bintermediary comp_1047named widthofficial cintermediary comp_1048named height
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
Constructor Details
-
Holder
- Mappings:
Namespace Name Mixin selector official <init>Lfuh$b;<init>(Lfuh$a;I)Vintermediary <init>Lnet/minecraft/class_1055$class_1056;<init>(Lnet/minecraft/class_1055$class_7769;I)Vnamed <init>Lnet/minecraft/client/texture/TextureStitcher$Holder;<init>(Lnet/minecraft/client/texture/TextureStitcher$Stitchable;I)V
-
Holder
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-