Class MachineChemicalPlantVboRenderer
java.lang.Object
com.hbm_m.client.render.implementations.MachineChemicalPlantVboRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordЦвет/текстура для fallback; основной путь — mesh сchemical_plant_fluid. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawChemplantFluidBaked(MachineChemicalPlantBakedModel model, net.minecraft.world.level.block.state.BlockState state, float anim, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay, MachineChemicalPlantVboRenderer.FluidVisual visual) Immediate draw used byMachineChemicalPlantRenderer.presentDeferredFluids().static booleanВидимость жидкости: тот же критерий, что звук иanim(см.voidrenderAnimatedPart(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, String partName, org.joml.Matrix4f transform, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.client.renderer.MultiBufferSource bufferSource) static voidrenderChemplantFluid(MachineChemicalPlantBlockEntity be, MachineChemicalPlantBakedModel model, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay, MachineChemicalPlantVboRenderer.FluidVisual visual) Ставит рендер жидкости в очередь доMachineChemicalPlantRenderer.presentDeferredFluids().voidrenderStaticBase(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.client.renderer.MultiBufferSource bufferSource) voidrenderStaticFrame(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.client.renderer.MultiBufferSource bufferSource)
-
Constructor Details
-
MachineChemicalPlantVboRenderer
-
-
Method Details
-
isChemplantProcessVisible
Видимость жидкости: тот же критерий, что звук иanim(см.MachineChemicalPlantBlockEntity.isChemplantEffectsActive()). -
getRecipeVisual
@Nullable public static MachineChemicalPlantVboRenderer.FluidVisual getRecipeVisual(MachineChemicalPlantBlockEntity be) -
renderChemplantFluid
public static void renderChemplantFluid(MachineChemicalPlantBlockEntity be, MachineChemicalPlantBakedModel model, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay, MachineChemicalPlantVboRenderer.FluidVisual visual) Ставит рендер жидкости в очередь доMachineChemicalPlantRenderer.presentDeferredFluids(). Caller уже применил поворот блока; здесь только VBO-сдвиг(-0.5, 0, -0.5). -
drawChemplantFluidBaked
public static void drawChemplantFluidBaked(MachineChemicalPlantBakedModel model, net.minecraft.world.level.block.state.BlockState state, float anim, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight, int packedOverlay, MachineChemicalPlantVboRenderer.FluidVisual visual) Immediate draw used byMachineChemicalPlantRenderer.presentDeferredFluids(). -
renderStaticBase
public void renderStaticBase(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, net.minecraft.core.BlockPos blockPos, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable net.minecraft.client.renderer.MultiBufferSource bufferSource) -
renderStaticFrame
public void renderStaticFrame(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, net.minecraft.core.BlockPos blockPos, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable net.minecraft.client.renderer.MultiBufferSource bufferSource) -
renderAnimatedPart
public void renderAnimatedPart(com.mojang.blaze3d.vertex.PoseStack poseStack, int packedLight, String partName, org.joml.Matrix4f transform, net.minecraft.core.BlockPos blockPos, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable net.minecraft.client.renderer.MultiBufferSource bufferSource)
-