Record Class ClientItemInfoLoader.PendingLoad
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ClientItemInfoLoader.PendingLoad
- Enclosing class:
ClientItemInfoLoader
private static record ClientItemInfoLoader.PendingLoad(Identifier id, @Nullable ClientItem clientItemInfo)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable ClientItemThe field for theclientItemInforecord component.private final IdentifierThe field for theidrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingLoad(Identifier id, @Nullable ClientItem clientItemInfo) Creates an instance of aPendingLoadrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ClientItemReturns the value of theclientItemInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
clientItemInfo
The field for theclientItemInforecord component.
-
-
Constructor Details
-
PendingLoad
Creates an instance of aPendingLoadrecord class.- Parameters:
id- the value for theidrecord componentclientItemInfo- the value for theclientItemInforecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
clientItemInfo
Returns the value of theclientItemInforecord component.- Returns:
- the value of the
clientItemInforecord component
-