Interface ModelModifier.OnLoadBlock

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.

@FunctionalInterface public static interface ModelModifier.OnLoadBlock
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The context for an on load block model modification event.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.block.model.BlockStateModel.UnbakedRoot
    modifyModelOnLoad(net.minecraft.client.renderer.block.model.BlockStateModel.UnbakedRoot model, ModelModifier.OnLoadBlock.Context context)
    This handler is invoked to allow modification of an unbaked block model right after it is first loaded.
  • Method Details

    • modifyModelOnLoad

      net.minecraft.client.renderer.block.model.BlockStateModel.UnbakedRoot modifyModelOnLoad(net.minecraft.client.renderer.block.model.BlockStateModel.UnbakedRoot model, ModelModifier.OnLoadBlock.Context context)
      This handler is invoked to allow modification of an unbaked block model right after it is first loaded.
      Parameters:
      model - the current unbaked model instance
      context - 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: