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 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 context) 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 resolver) 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
-
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). -
models
Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-