Interface FabricBlockModelRenderState


public interface FabricBlockModelRenderState
Note: This interface is automatically implemented on BlockModelRenderState via Mixin and interface injection.
  • Method Summary

    Modifier and Type
    Method
    Description
    default QuadEmitter
    setupMesh(org.joml.Matrix4fc transformation, boolean hasTranslucency)
    Alternative to BlockModelRenderState.setupModel(Matrix4fc, boolean) that returns a QuadEmitter that adds geometry to this state.
  • Method Details

    • setupMesh

      default QuadEmitter setupMesh(org.joml.Matrix4fc transformation, boolean hasTranslucency)
      Alternative to BlockModelRenderState.setupModel(Matrix4fc, boolean) that returns a QuadEmitter that adds geometry to this state. Calling this method a second time clears all previously added geometry and any changes made to the emitter.

      Calling this method or BlockModelRenderState.setupModel(Matrix4fc, boolean) clears both this state's vanilla model parts and mesh (whose quad emitter is returned by this method). If you must use both vanilla model parts and a quad emitter, use this method in conjunction with FabricBlockStateModelPart.emitQuads(QuadEmitter, Predicate).

      Returns:
      a quad emitter that appends geometry to this state.