Record Class CompositeModel.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.CompositeModel.Unbaked
- All Implemented Interfaces:
ItemModel.Unbaked,ResolvableModel
- Enclosing class:
CompositeModel
public static record CompositeModel.Unbaked(List<ItemModel.Unbaked> models)
extends Record
implements ItemModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CompositeModel.Unbaked> private final List<ItemModel.Unbaked> The field for themodelsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(List<ItemModel.Unbaked> models) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(ItemModel.BakingContext p_388240_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.models()Returns the value of themodelsrecord component.voidresolveDependencies(ResolvableModel.Resolver p_387836_) final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<CompositeModel.Unbaked> type()
-
Field Details
-
models
The field for themodelsrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
models- the value for themodelsrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceItemModel.Unbaked
-
resolveDependencies
- Specified by:
resolveDependenciesin interfaceResolvableModel
-
bake
- Specified by:
bakein interfaceItemModel.Unbaked
-
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). -
models
Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-