Interface ModelModifier.AfterBakeBlock
- 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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe context for an after bake block model modification event. -
Method Summary
Modifier and TypeMethodDescriptionmodifyModelAfterBake(BlockStateModel model, ModelModifier.AfterBakeBlock.Context context) This handler is invoked to allow modification of the baked block model instance right after it is baked.
-
Method Details
-
modifyModelAfterBake
BlockStateModel modifyModelAfterBake(BlockStateModel model, ModelModifier.AfterBakeBlock.Context context) This handler is invoked to allow modification of the baked block model instance right after it is baked.- Parameters:
model- the current baked 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
modelas-is. - See Also:
-