StaffBlockStateRenderer

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

A base class for rendering a BlockState at a specific position and scale.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
@Environment(value = EnvType.CLIENT)
object Companion
Link copied to clipboard
@Environment(value = EnvType.CLIENT)
class Transformation(scale: Float, offset: Vector3fc) : RenderContext.QuadTransform

A RenderContext.QuadTransform, which scales each quad to scale, and then offsets them by offset.

Properties

Link copied to clipboard
abstract val offset: Vector3fc

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

Link copied to clipboard
abstract val scale: Float

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

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.