Class CrucibleRenderer
java.lang.Object
com.hbm_m.client.render.implementations.CrucibleRenderer
- All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<MachineCrucibleBlockEntity>
public class CrucibleRenderer
extends Object
implements net.minecraft.client.renderer.blockentity.BlockEntityRenderer<MachineCrucibleBlockEntity>
Renderer for the Crucible BlockEntity.
Renders a flat "molten metal" surface quad inside the crucible bowl whose
height depends on
MachineCrucibleBlockEntity.getFillLevel().
Legacy equivalent: RenderCrucible (1.7.10 TileEntitySpecialRenderer)
Coordinate frame matches the bowl geometry defined in MachineCrucibleBlock:
- bowl base at y = 4/16 = 0.25
- inner X/Z range: 2/16 .. 14/16 (2 px walls on every side)
- lava surface Y = BOWL_BASE + fillLevel * (1.0 - BOWL_BASE)
Once MaterialStack / Mats is ported:
1. Set fillLevel on the BlockEntity from the actual stack data.
2. Set fillColor from the dominant material's moltenColor.
3. The quad will automatically pick up both values.-
Constructor Summary
ConstructorsConstructorDescriptionCrucibleRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(MachineCrucibleBlockEntity blockEntity, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay) booleanshouldRenderOffScreen(MachineCrucibleBlockEntity blockEntity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender
-
Constructor Details
-
CrucibleRenderer
public CrucibleRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context)
-
-
Method Details
-
render
public void render(MachineCrucibleBlockEntity blockEntity, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay) - Specified by:
renderin interfacenet.minecraft.client.renderer.blockentity.BlockEntityRenderer<MachineCrucibleBlockEntity>
-
shouldRenderOffScreen
- Specified by:
shouldRenderOffScreenin interfacenet.minecraft.client.renderer.blockentity.BlockEntityRenderer<MachineCrucibleBlockEntity>
-