Class MachineChemicalPlantRenderer
java.lang.Object
com.hbm_m.client.render.AbstractPartBasedRenderer<MachineChemicalPlantBlockEntity,MachineChemicalPlantBakedModel>
com.hbm_m.client.render.implementations.MachineChemicalPlantRenderer
- All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<MachineChemicalPlantBlockEntity>
public class MachineChemicalPlantRenderer
extends AbstractPartBasedRenderer<MachineChemicalPlantBlockEntity,MachineChemicalPlantBakedModel>
-
Constructor Summary
ConstructorsConstructorDescriptionMachineChemicalPlantRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context ctx) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidСброс очереди жидкости в начале кадра (или на early-return).static voidflushInstancedBatches(org.joml.Matrix4f projectionMatrix) protected net.minecraft.core.Directionprotected MachineChemicalPlantBakedModelgetModelType(net.minecraft.client.resources.model.BakedModel rawModel) intstatic voidОтрисовка всей накопленной за кад жидкости.protected voidrenderParts(MachineChemicalPlantBlockEntity be, MachineChemicalPlantBakedModel model, LegacyAnimator animator, float partialTick, int packedLight, int packedOverlay, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource) protected voidsetupBlockTransform(LegacyAnimator animator, MachineChemicalPlantBlockEntity be) Поворот/сдвиг блока в локальных координатах передAbstractPartBasedRenderer.renderParts(T, M, com.hbm_m.client.render.LegacyAnimator, float, int, int, com.mojang.blaze3d.vertex.PoseStack, net.minecraft.client.renderer.MultiBufferSource).Methods inherited from class com.hbm_m.client.render.AbstractPartBasedRenderer
getCurrentModelViewMatrix, getMinecraft, getModel, isInViewFrustum, render, shouldRenderOffScreen, unwrapFabricForwardingModelsMethods 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
shouldRender
-
Constructor Details
-
MachineChemicalPlantRenderer
public MachineChemicalPlantRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context ctx)
-
-
Method Details
-
getModelType
protected MachineChemicalPlantBakedModel getModelType(net.minecraft.client.resources.model.BakedModel rawModel) - Specified by:
getModelTypein classAbstractPartBasedRenderer<MachineChemicalPlantBlockEntity,MachineChemicalPlantBakedModel>
-
getFacing
- Specified by:
getFacingin classAbstractPartBasedRenderer<MachineChemicalPlantBlockEntity,MachineChemicalPlantBakedModel>
-
setupBlockTransform
Description copied from class:AbstractPartBasedRendererПоворот/сдвиг блока в локальных координатах передAbstractPartBasedRenderer.renderParts(T, M, com.hbm_m.client.render.LegacyAnimator, float, int, int, com.mojang.blaze3d.vertex.PoseStack, net.minecraft.client.renderer.MultiBufferSource). -
renderParts
protected void renderParts(MachineChemicalPlantBlockEntity be, MachineChemicalPlantBakedModel model, LegacyAnimator animator, float partialTick, int packedLight, int packedOverlay, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource) - Specified by:
renderPartsin classAbstractPartBasedRenderer<MachineChemicalPlantBlockEntity,MachineChemicalPlantBakedModel>
-
clearDeferredFluids
public static void clearDeferredFluids()Сброс очереди жидкости в начале кадра (или на early-return). -
presentDeferredFluids
public static void presentDeferredFluids()Отрисовка всей накопленной за кад жидкости. Вызывается изInstancedRenderFrame.presentAfterBlockEntitiesпослеIrisRenderBatch.closePersistentIfActive()и instanced-flush.depthMask(false) вокруг цикла — как
glDepthMask(false)в 1.7.10: жидкость не пишет depth, корректно смешивается с частями за ней (depth уже содержит opaque-части, отрисованные на instanced-flush). ОдинendBatch()изолированногоMachineChemicalPlantVboRenderer.FLUID_BUFFER_SOURCEпосле цикла = один translucent glDraw (а не N), вне shared bufferSource. -
flushInstancedBatches
public static void flushInstancedBatches(org.joml.Matrix4f projectionMatrix) -
clearCaches
public static void clearCaches() -
getViewDistance
public int getViewDistance()
-