Class AbstractUnbakedModel
java.lang.Object
net.neoforged.neoforge.client.model.AbstractUnbakedModel
- All Implemented Interfaces:
ResolvableModel,UnbakedModel,IUnbakedModelExtension,ExtendedUnbakedModel
- Direct Known Subclasses:
ObjModel,UnbakedCompositeModel
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 net.minecraft.client.resources.model.ResolvableModel
ResolvableModel.ResolverNested classes/interfaces inherited from interface net.minecraft.client.resources.model.UnbakedModel
UnbakedModel.GuiLight -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StandardModelParametersHolds the standard top-level model parameters except elements.private UnbakedModelFields inherited from interface net.minecraft.client.resources.model.UnbakedModel
DEFAULT_AMBIENT_OCCLUSION, DEFAULT_GUI_LIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfillAdditionalProperties(ContextMap.Builder propertiesBuilder) Appends additional properties for this model to the builder.@Nullable Boolean@Nullable UnbakedModel.GuiLight@Nullable UnbakedModel@Nullable ItemTransformsvoidresolveDependencies(ResolvableModel.Resolver resolver) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.model.ExtendedUnbakedModel
bake, bake
-
Field Details
-
parameters
Holds the standard top-level model parameters except elements.IUnbakedModelExtension.bake(TextureSlots, ModelBaker, ModelState, boolean, boolean, ItemTransforms, 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. -
parent
-
-
Constructor Details
-
AbstractUnbakedModel
-
-
Method Details
-
resolveDependencies
- Specified by:
resolveDependenciesin interfaceResolvableModel
-
getAmbientOcclusion
- Specified by:
getAmbientOcclusionin interfaceUnbakedModel
-
getGuiLight
- Specified by:
getGuiLightin interfaceUnbakedModel
-
getTransforms
- Specified by:
getTransformsin interfaceUnbakedModel
-
getTextureSlots
- Specified by:
getTextureSlotsin interfaceUnbakedModel
-
getParent
- Specified by:
getParentin interfaceUnbakedModel
-
fillAdditionalProperties
Description copied from interface:IUnbakedModelExtensionAppends 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 will be passed as the last parameter to
IUnbakedModelExtension.bake(TextureSlots, ModelBaker, ModelState, boolean, boolean, ItemTransforms, ContextMap).- Specified by:
fillAdditionalPropertiesin interfaceIUnbakedModelExtension- See Also:
-