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 named net/minecraft/client/texture/TextureStitcher$Holder
intermediary net/minecraft/class_1055$class_1056
official goy$b
named sprite
intermediary comp_1046
official a
named width
intermediary comp_1047
official b
named height
intermediary comp_1048
official c
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.sprite()
Returns the value of thesprite
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Field Details
-
Constructor Details
-
Holder
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/texture/TextureStitcher$Holder;<init>(Lnet/minecraft/client/texture/TextureStitcher$Stitchable;I)V
intermediary <init>
Lnet/minecraft/class_1055$class_1056;<init>(Lnet/minecraft/class_1055$class_7769;I)V
official <init>
Lgoy$b;<init>(Lgoy$a;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 thesprite
record component.- Returns:
- the value of the
sprite
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-