Record Class CompositePartModel.Unbaked
java.lang.Object
java.lang.Record
appeng.client.api.model.parts.CompositePartModel.Unbaked
- All Implemented Interfaces:
PartModel.Unbaked, net.minecraft.client.resources.model.ResolvableModel
- Enclosing class:
CompositePartModel
public static record CompositePartModel.Unbaked(List<PartModel.Unbaked> models)
extends Record
implements PartModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
net.minecraft.client.resources.model.ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.Identifierstatic final com.mojang.serialization.MapCodec<CompositePartModel.Unbaked> -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(List<PartModel.Unbaked> models) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(net.minecraft.client.resources.model.ModelBaker baker, net.minecraft.client.renderer.block.dispatch.ModelState modelState) com.mojang.serialization.MapCodec<? extends PartModel.Unbaked> codec()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(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
public static final net.minecraft.resources.Identifier ID -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
models- the value for themodelsrecord component
-
-
Method Details
-
codec
- Specified by:
codecin interfacePartModel.Unbaked
-
bake
public PartModel bake(net.minecraft.client.resources.model.ModelBaker baker, net.minecraft.client.renderer.block.dispatch.ModelState modelState) - Specified by:
bakein interfacePartModel.Unbaked
-
resolveDependencies
public void resolveDependencies(net.minecraft.client.resources.model.ResolvableModel.Resolver resolver) - Specified by:
resolveDependenciesin interfacenet.minecraft.client.resources.model.ResolvableModel
-
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
-