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
Modifier and TypeFieldDescriptionprivate final int
The field for theheight
record component.private final int
The field for themipLevel
record component.private final TextureAtlasSprite
The field for themissing
record component.private final CompletableFuture
<Void> The field for thereadyForUpload
record component.private final Map
<ResourceLocation, TextureAtlasSprite> The field for theregions
record component.private final int
The field for thewidth
record component. -
Constructor Summary
ConstructorDescriptionPreparations
(int width, int height, int mipLevel, TextureAtlasSprite missing, Map<ResourceLocation, TextureAtlasSprite> regions, CompletableFuture<Void> readyForUpload) Creates an instance of aPreparations
record class. -
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.int
mipLevel()
Returns the value of themipLevel
record component.missing()
Returns the value of themissing
record component.Returns the value of thereadyForUpload
record component.regions()
Returns the value of theregions
record component.final String
toString()
Returns a string representation of this record class.int
width()
Returns the value of thewidth
record component.
-
Field Details
-
width
private final int widthThe field for thewidth
record component. -
height
private final int heightThe field for theheight
record component. -
mipLevel
private final int mipLevelThe field for themipLevel
record component. -
missing
The field for themissing
record component. -
regions
The field for theregions
record component. -
readyForUpload
The field for thereadyForUpload
record 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 aPreparations
record class.- Parameters:
width
- the value for thewidth
record componentheight
- the value for theheight
record componentmipLevel
- the value for themipLevel
record componentmissing
- the value for themissing
record componentregions
- the value for theregions
record componentreadyForUpload
- the value for thereadyForUpload
record 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 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
-
mipLevel
public int mipLevel()Returns the value of themipLevel
record component.- Returns:
- the value of the
mipLevel
record component
-
missing
Returns the value of themissing
record component.- Returns:
- the value of the
missing
record component
-
regions
Returns the value of theregions
record component.- Returns:
- the value of the
regions
record component
-
readyForUpload
Returns the value of thereadyForUpload
record component.- Returns:
- the value of the
readyForUpload
record component
-