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
- TheStateDefinition
of the block this definition is being instantiated forsourceSupplier
- ASupplier
providing the source file and source pack name for debugging- Returns:
- a map of
BlockState
s toBlockStateModel.UnbakedRoot
s for all states of the provided state definition - See Also:
-
codec
com.mojang.serialization.MapCodec<? extends CustomBlockModelDefinition> codec()
-