Interface ModelModifier.BeforeBake
- Enclosing class:
ModelModifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The context for a before bake model modification event. -
Method Summary
Modifier and TypeMethodDescriptionmodifyModelBeforeBake
(UnbakedModel model, ModelModifier.BeforeBake.Context context) This handler is invoked to allow modification of the unbaked model instance right before it is baked.
-
Method Details
-
modifyModelBeforeBake
This handler is invoked to allow modification of the unbaked model instance right before it is baked.- Parameters:
model
- the current unbaked model instancecontext
- context with additional information about the model/loader- Returns:
- the model that should be used in this scenario. If no changes are needed, just return
model
as-is. - See Also:
-