Interface BlockStateResolver.Context

Enclosing interface:
BlockStateResolver

@NonExtendable public static interface BlockStateResolver.Context
The context for block state resolution.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.block.Block
    The block for which block state models are being resolved.
    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.
  • 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 used
      model - the unbaked model for this block state