CakeEntityRenderer

@Environment(value = EnvType.CLIENT)
class CakeEntityRenderer(context: EntityRendererFactory.Context) : EntityRenderer<CakeEntity> (source)

Renderer of CakeEntity.

Constructors

Link copied to clipboard
constructor(context: EntityRendererFactory.Context)

Inherited properties

Link copied to clipboard
Link copied to clipboard
protected var shadowOpacity: Float
Link copied to clipboard
protected var shadowRadius: Float
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getTexture(cake: CakeEntity): Identifier
Link copied to clipboard
open override fun render(cake: CakeEntity, yaw: Float, tickDelta: Float, matrices: MatrixStack, vertexConsumers: VertexConsumerProvider, light: Int)

Inherited functions

Link copied to clipboard
protected open fun getBlockLight(entity: CakeEntity, pos: BlockPos): Int
Link copied to clipboard
fun getLight(entity: CakeEntity, tickDelta: Float): Int
Link copied to clipboard
open fun getPositionOffset(entity: CakeEntity, tickDelta: Float): Vec3d
Link copied to clipboard
protected open fun getShadowRadius(entity: CakeEntity): Float
Link copied to clipboard
protected open fun getSkyLight(entity: CakeEntity, pos: BlockPos): Int
Link copied to clipboard
protected open fun hasLabel(entity: CakeEntity): Boolean
Link copied to clipboard
protected open fun renderLabelIfPresent(entity: CakeEntity, text: Text, matrices: MatrixStack, vertexConsumers: VertexConsumerProvider, light: Int, tickDelta: Float)
Link copied to clipboard
open fun shouldRender(entity: CakeEntity, frustum: Frustum, x: Double, y: Double, z: Double): Boolean