Record Class CompositeBlockModel.Unbaked
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.block.CompositeBlockModel.Unbaked
- All Implemented Interfaces:
BlockStateModel.Unbaked, ResolvableModel, CustomUnbakedBlockStateModel
- Enclosing class:
CompositeBlockModel
public static record CompositeBlockModel.Unbaked(List<BlockStateModel.Unbaked> models)
extends Record
implements CustomUnbakedBlockStateModel
-
Nested Class Summary
Nested classes/interfaces inherited from interface ResolvableModel
ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CompositeBlockModel.Unbaked> private final List<BlockStateModel.Unbaked> The field for themodelsrecord component.Fields inherited from interface BlockStateModel.Unbaked
CODEC, ELEMENT_CODEC, HARDCODED_WEIGHTED_CODEC, SINGLE_MODEL_CODEC, WEIGHTED_MODEL_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(List<BlockStateModel.Unbaked> models) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(ModelBaker baker) com.mojang.serialization.MapCodec<? extends CustomUnbakedBlockStateModel> codec()Returns the codec for this type of unbaked block state model.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.Methods inherited from interface BlockStateModel.Unbaked
asRoot
-
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
-
bake
- Specified by:
bakein interfaceBlockStateModel.Unbaked
-
resolveDependencies
- Specified by:
resolveDependenciesin interfaceResolvableModel
-
codec
Description copied from interface:CustomUnbakedBlockStateModelReturns the codec for this type of unbaked block state model.- Specified by:
codecin interfaceCustomUnbakedBlockStateModel
-
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
-