Record Class TextureManager.PendingReload
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.texture.TextureManager.PendingReload
- Enclosing class:
TextureManager
private static record TextureManager.PendingReload(ReloadableTexture texture, CompletableFuture<TextureContents> newContents)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompletableFuture<TextureContents> The field for thenewContentsrecord component.private final ReloadableTextureThe field for thetexturerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingReload(ReloadableTexture texture, CompletableFuture<TextureContents> newContents) Creates an instance of aPendingReloadrecord 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.Returns the value of thenewContentsrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
texture
The field for thetexturerecord component. -
newContents
The field for thenewContentsrecord component.
-
-
Constructor Details
-
PendingReload
Creates an instance of aPendingReloadrecord class.- Parameters:
texture- the value for thetexturerecord componentnewContents- the value for thenewContentsrecord component
-
-
Method Details
-
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). -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
newContents
Returns the value of thenewContentsrecord component.- Returns:
- the value of the
newContentsrecord component
-