Record Class AtlasManager.PendingStitch
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.AtlasManager.PendingStitch
- Enclosing class:
AtlasManager
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
ConstructorsConstructorDescriptionPendingStitch(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<Material, TextureAtlasSprite> pOutput) 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
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
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. 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
-