InsideStaffBlockStateRenderer

@Environment(value = EnvType.CLIENT)
abstract class InsideStaffBlockStateRenderer : StaffBlockStateRenderer(source)

A base class for rendering a BlockState at the default position and scale (that is, "inside" the staff).

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
@Environment(value = EnvType.CLIENT)
object Companion

Properties

Link copied to clipboard
open override val offset: Vector3f

Gets the offset of the block state to render. Applied after scale.

Link copied to clipboard
open override val scale: Float

Gets the scale of the block state to render. Applied before offset.

Inherited functions

Link copied to clipboard
open override fun emitItemQuads(staffStack: ItemStack, randomSupplier: Supplier<Random>, context: RenderContext)

Adds the model of the block added to the staff to the staff model's mesh.

Link copied to clipboard
abstract fun getBlockState(staffStack: ItemStack): BlockState

Gets the block state to render into the staff.