Interface CustomBlockModelDefinition
public interface CustomBlockModelDefinition
Custom block model definition to allow completely taking over the loading of a blockstate file
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends CustomBlockModelDefinition> codec()instantiate(StateDefinition<Block, BlockState> states, Supplier<String> sourceSupplier) Instantiate this definition.
-
Method Details
-
instantiate
Map<BlockState,BlockStateModel.UnbakedRoot> instantiate(StateDefinition<Block, BlockState> states, Supplier<String> sourceSupplier) Instantiate this definition.- Parameters:
states- TheStateDefinitionof the block this definition is being instantiated forsourceSupplier- ASupplierproviding the source file and source pack name for debugging- Returns:
- a map of
BlockStates toBlockStateModel.UnbakedRoots for all states of the provided state definition - See Also:
-
codec
com.mojang.serialization.MapCodec<? extends CustomBlockModelDefinition> codec()
-