Package net.minecraft.client.texture
Record Class SpriteLoader.StitchResult
java.lang.Object
java.lang.Record
net.minecraft.client.texture.SpriteLoader.StitchResult
- Record Components:
width-height-mipLevel-missing-sprites-readyForUpload-
- Enclosing class:
SpriteLoader
@Environment(CLIENT)
public static record SpriteLoader.StitchResult(int width, int height, int mipLevel, Sprite missing, Map<Identifier,Sprite> sprites, CompletableFuture<Void> readyForUpload)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/texture/SpriteLoader$StitchResultintermediary net/minecraft/class_7766$class_7767official icj$anamed widthintermediary comp_1040official anamed heightintermediary comp_1041official bnamed mipLevelintermediary comp_1042official cnamed missingintermediary comp_1043official dnamed spritesintermediary comp_1044official enamed readyForUploadintermediary comp_1045official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theheightrecord component.private final intThe field for themipLevelrecord component.private final SpriteThe field for themissingrecord component.private final CompletableFuture<Void> The field for thereadyForUploadrecord component.private final Map<Identifier, Sprite> The field for thespritesrecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStitchResult(int int2, int int3, int int4, Sprite sprite, Map<Identifier, Sprite> map, CompletableFuture<Void> completableFuture) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getSprite(Identifier id) final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intmipLevel()Returns the value of themipLevelrecord component.missing()Returns the value of themissingrecord component.Returns the value of thereadyForUploadrecord component.sprites()Returns the value of thespritesrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
mipLevel
private final int mipLevelThe field for themipLevelrecord component. -
missing
The field for themissingrecord component. -
sprites
The field for thespritesrecord component. -
readyForUpload
The field for thereadyForUploadrecord component.
-
-
Constructor Details
-
StitchResult
public StitchResult(int int2, int int3, int int4, Sprite sprite, Map<Identifier, Sprite> map, CompletableFuture<Void> completableFuture)
-
-
Method Details
-
getSprite
- Mappings:
Namespace Name Mixin selector named getSpriteLnet/minecraft/client/texture/SpriteLoader$StitchResult;getSprite(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/Sprite;intermediary method_73022Lnet/minecraft/class_7766$class_7767;method_73022(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1058;official aLicj$a;a(Lamj;)Lico;
-
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 '=='. -
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
-
mipLevel
public int mipLevel()Returns the value of themipLevelrecord component.- Returns:
- the value of the
mipLevelrecord component
-
missing
Returns the value of themissingrecord component.- Returns:
- the value of the
missingrecord component
-
sprites
Returns the value of thespritesrecord component.- Returns:
- the value of the
spritesrecord component
-
readyForUpload
Returns the value of thereadyForUploadrecord component.- Returns:
- the value of the
readyForUploadrecord component
-