Interface ModelModifier.OnLoad
- 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 on load model modification event. -
Method Summary
Modifier and TypeMethodDescriptionmodifyModelOnLoad(UnbakedModel model, ModelModifier.OnLoad.Context context) This handler is invoked to allow modification of an unbaked model right after it is first loaded and before it is cached.
-
Method Details
-
modifyModelOnLoad
This handler is invoked to allow modification of an unbaked model right after it is first loaded and before it is cached.- 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
modelas-is. - See Also:
-