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 fzb$b
intermediary net/minecraft/class_1055$class_1056
named net/minecraft/client/texture/TextureStitcher$Holder
official a
intermediary comp_1046
named sprite
official b
intermediary comp_1047
named width
official c
intermediary comp_1048
named height
-
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 official <init>
Lfzb$b;<init>(Lfzb$a;I)V
intermediary <init>
Lnet/minecraft/class_1055$class_1056;<init>(Lnet/minecraft/class_1055$class_7769;I)V
named <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 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
-