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 - heq$b- named - sprite- intermediary - comp_1046- official - a- named - width- intermediary - comp_1047- official - b- named - height- intermediary - comp_1048- official - c
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 - 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>- Lheq$b;<init>(Lheq$a;I)V
 
- 
Holder
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
spriteReturns the value of thespriterecord component.- Returns:
- the value of the spriterecord component
 
- 
widthpublic int width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic int height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
 
-