Interface BlockStateResolver.Context
- Enclosing interface:
BlockStateResolver
@NonExtendable
public static interface BlockStateResolver.Context
The context for block state resolution.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Blockblock()The block for which block state models are being resolved.voidsetModel(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.renderer.block.model.BlockStateModel.UnbakedRoot model) Sets the model for a block state.
-
Method Details
-
block
net.minecraft.world.level.block.Block block()The block for which block state models are being resolved. -
setModel
void setModel(net.minecraft.world.level.block.state.BlockState state, net.minecraft.client.renderer.block.model.BlockStateModel.UnbakedRoot model) Sets the model for a block state.- Parameters:
state- the block state for which this model should be usedmodel- the unbaked model for this block state
-