Class AbstractUnbakedModel
java.lang.Object
net.neoforged.neoforge.client.model.AbstractUnbakedModel
- All Implemented Interfaces:
ResolvableModel, UnbakedModel, UnbakedModelExtension
- Direct Known Subclasses:
CompositeUnbakedModel, ObjModel
Base unbaked model for custom models which support the standard top-level model parameters
added by vanilla and NeoForge except elements but create the quads from something other
than the vanilla elements spec.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ResolvableModel
ResolvableModel.ResolverNested classes/interfaces inherited from interface UnbakedModel
UnbakedModel.GuiLight -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StandardModelParametersHolds the standard top-level model parameters except elements.Fields inherited from interface UnbakedModel
PARTICLE_TEXTURE_REFERENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillAdditionalProperties(ContextMap.Builder propertiesBuilder) Appends additional properties for this model to the builder.guiLight()parent()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UnbakedModel
geometryMethods inherited from interface UnbakedModelExtension
resolveDependencies
-
Field Details
-
parameters
Holds the standard top-level model parameters except elements.UnbakedGeometryExtension.bake(TextureSlots, ModelBaker, ModelState, ModelDebugName, ContextMap)must always use the values given as parameters instead of accessing this parameter directly in order to take values collected along the model's parent chain into account.
-
-
Constructor Details
-
AbstractUnbakedModel
-
-
Method Details
-
ambientOcclusion
- Specified by:
ambientOcclusionin interfaceUnbakedModel
-
guiLight
- Specified by:
guiLightin interfaceUnbakedModel
-
transforms
- Specified by:
transformsin interfaceUnbakedModel
-
textureSlots
- Specified by:
textureSlotsin interfaceUnbakedModel
-
parent
- Specified by:
parentin interfaceUnbakedModel
-
fillAdditionalProperties
Description copied from interface:UnbakedModelExtensionAppends additional properties for this model to the builder.This method will already have been called on the parent models. It can modify the properties added by a parent model and/or add its own. This ensures that the properties are merged across the model parent-child chain.
The context map containing all the properties can be retrieved later using
ResolvedModelExtension.getTopAdditionalProperties().- Specified by:
fillAdditionalPropertiesin interfaceUnbakedModelExtension- See Also:
-