Class WrapperUnbakedModel
java.lang.Object
net.fabricmc.fabric.api.client.model.loading.v1.WrapperUnbakedModel
- All Implemented Interfaces:
ResolvableModel
,UnbakedModel
A simple implementation of
UnbakedModel
that delegates all method calls to the wrapped
field.
Implementations must set the wrapped
field somehow.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.ResolvableModel
ResolvableModel.Resolver
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.UnbakedModel
UnbakedModel.GuiLight
-
Field Summary
Fields inherited from interface net.minecraft.client.render.model.UnbakedModel
DEFAULT_AMBIENT_OCCLUSION, DEFAULT_GUI_LIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbake
(ModelTextures textures, Baker baker, ModelBakeSettings settings, boolean ambientOcclusion, boolean isSideLit, ModelTransformation transformation) @Nullable Boolean
@Nullable UnbakedModel.GuiLight
@Nullable UnbakedModel
@Nullable ModelTransformation
void
resolve
(ResolvableModel.Resolver resolver)
-
Field Details
-
wrapped
-
-
Constructor Details
-
WrapperUnbakedModel
protected WrapperUnbakedModel() -
WrapperUnbakedModel
-
-
Method Details
-
resolve
- Specified by:
resolve
in interfaceResolvableModel
-
bake
public BakedModel bake(ModelTextures textures, Baker baker, ModelBakeSettings settings, boolean ambientOcclusion, boolean isSideLit, ModelTransformation transformation) - Specified by:
bake
in interfaceUnbakedModel
-
getAmbientOcclusion
- Specified by:
getAmbientOcclusion
in interfaceUnbakedModel
-
getGuiLight
- Specified by:
getGuiLight
in interfaceUnbakedModel
-
getTransformation
- Specified by:
getTransformation
in interfaceUnbakedModel
-
getTextures
- Specified by:
getTextures
in interfaceUnbakedModel
-
getParent
- Specified by:
getParent
in interfaceUnbakedModel
-