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Сброс очереди в начале кадра (до BER).static voidflushInstancedBatches(org.joml.Matrix4f projectionMatrix) protected net.minecraft.core.Directionprotected MachineChemicalPlantBakedModelgetModelType(net.minecraft.client.resources.model.BakedModel rawModel) intstatic voidПосле всех BER и flush instanced: в depth уже все части машин, жидкость только тестирует depth.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) static voidscheduleDeferredFluid(net.minecraft.core.BlockPos pos, org.joml.Matrix4f poseInLocalSpace, int packedLight, int packedOverlay, MachineChemicalPlantVboRenderer.FluidVisual visual) Ставит жидкость в очередь; отрисовка —presentDeferredFluids()послеflushInstancedBatches(Matrix4f)вInstancedRenderFrame.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
-
clearDeferredFluids
public static void clearDeferredFluids()Сброс очереди в начале кадра (до BER). -
scheduleDeferredFluid
public static void scheduleDeferredFluid(net.minecraft.core.BlockPos pos, org.joml.Matrix4f poseInLocalSpace, int packedLight, int packedOverlay, MachineChemicalPlantVboRenderer.FluidVisual visual) Ставит жидкость в очередь; отрисовка —presentDeferredFluids()послеflushInstancedBatches(Matrix4f)вInstancedRenderFrame. -
presentDeferredFluids
public static void presentDeferredFluids()После всех BER и flush instanced: в depth уже все части машин, жидкость только тестирует depth. -
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>
-
flushInstancedBatches
public static void flushInstancedBatches(org.joml.Matrix4f projectionMatrix) -
clearCaches
public static void clearCaches() -
getViewDistance
public int getViewDistance()
-