Record Class AtlasManager.PendingStitch
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.AtlasManager.PendingStitch
- Enclosing class:
AtlasManager
private static record AtlasManager.PendingStitch(AtlasManager.AtlasEntry entry, CompletableFuture<SpriteLoader.Preparations> preparations)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtlasManager.AtlasEntryThe field for theentryrecord component.private final CompletableFuture<SpriteLoader.Preparations> The field for thepreparationsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingStitch(AtlasManager.AtlasEntry entry, CompletableFuture<SpriteLoader.Preparations> preparations) Creates an instance of aPendingStitchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidjoinAndUpload(Map<SpriteId, TextureAtlasSprite> result) Returns the value of thepreparationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
entry
The field for theentryrecord component. -
preparations
The field for thepreparationsrecord component.
-
-
Constructor Details
-
PendingStitch
private PendingStitch(AtlasManager.AtlasEntry entry, CompletableFuture<SpriteLoader.Preparations> preparations) Creates an instance of aPendingStitchrecord class.- Parameters:
entry- the value for theentryrecord componentpreparations- the value for thepreparationsrecord component
-
-
Method Details
-
joinAndUpload
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-
preparations
Returns the value of thepreparationsrecord component.- Returns:
- the value of the
preparationsrecord component
-