Record Class SpriteLoader.Preparations
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.texture.SpriteLoader.Preparations
- Enclosing class:
SpriteLoader
public static record SpriteLoader.Preparations(int width, int height, int mipLevel, TextureAtlasSprite missing, Map<ResourceLocation,TextureAtlasSprite> regions, CompletableFuture<Void> readyForUpload)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theheightrecord component.private final intThe field for themipLevelrecord component.private final TextureAtlasSpriteThe field for themissingrecord component.private final CompletableFuture<Void> The field for thereadyForUploadrecord component.private final Map<ResourceLocation, TextureAtlasSprite> The field for theregionsrecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPreparations(int width, int height, int mipLevel, TextureAtlasSprite missing, Map<ResourceLocation, TextureAtlasSprite> regions, CompletableFuture<Void> readyForUpload) Creates an instance of aPreparationsrecord class. -
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.intmipLevel()Returns the value of themipLevelrecord component.missing()Returns the value of themissingrecord component.Returns the value of thereadyForUploadrecord component.regions()Returns the value of theregionsrecord 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. -
regions
The field for theregionsrecord component. -
readyForUpload
The field for thereadyForUploadrecord component.
-
-
Constructor Details
-
Preparations
public Preparations(int width, int height, int mipLevel, TextureAtlasSprite missing, Map<ResourceLocation, TextureAtlasSprite> regions, CompletableFuture<Void> readyForUpload) Creates an instance of aPreparationsrecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord componentmipLevel- the value for themipLevelrecord componentmissing- the value for themissingrecord componentregions- the value for theregionsrecord componentreadyForUpload- the value for thereadyForUploadrecord component
-
-
Method Details
-
waitForUpload
-
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
-
regions
Returns the value of theregionsrecord component.- Returns:
- the value of the
regionsrecord component
-
readyForUpload
Returns the value of thereadyForUploadrecord component.- Returns:
- the value of the
readyForUploadrecord component
-