Interface BlockModelPartExtension


public interface BlockModelPartExtension
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.util.TriState
    Controls the AO behavior for all quads of this model.
    default net.minecraft.client.renderer.RenderType
    getRenderType(net.minecraft.world.level.block.state.BlockState state)
    Gets the set of render types to use when drawing this block in the level.
    private net.minecraft.client.renderer.block.model.BlockModelPart
     
  • Method Details

    • getRenderType

      default net.minecraft.client.renderer.RenderType getRenderType(net.minecraft.world.level.block.state.BlockState state)
      Gets the set of render types to use when drawing this block in the level. Supported types are those returned by RenderType.chunkBufferLayers().

      By default, defers query to ItemBlockRenderTypes.

    • ambientOcclusion

      default net.minecraft.util.TriState ambientOcclusion()
      Controls the AO behavior for all quads of this model. The default behavior is to use AO unless the block emits light, TriState.TRUE and TriState.FALSE force AO to be enabled and disabled respectively, regardless of the block emitting light or not. BakedQuad.hasAmbientOcclusion() can be used to disable AO for a specific quad even if this method says otherwise.

      This method cannot force AO if the global smooth lighting video setting is disabled.

      Returns:
      TriState.TRUE to force-enable AO, TriState.FALSE to force-disable AO or TriState.DEFAULT to use vanilla AO behavior
    • self

      private net.minecraft.client.renderer.block.model.BlockModelPart self()