Class PneumaticTubeRenderer
java.lang.Object
com.simibubi.create.foundation.blockEntity.renderer.SafeBlockEntityRenderer<PneumaticTubeBlockEntity>
com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<PneumaticTubeBlockEntity>
com.petrolpark.petrolsparts.content.pneumatic_tube.PneumaticTubeRenderer
- All Implemented Interfaces:
com.petrolpark.compat.create.core.tube.ITubeRenderer<PneumaticTubeBlockEntity>,net.minecraft.client.renderer.blockentity.BlockEntityRenderer<PneumaticTubeBlockEntity>,net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension<PneumaticTubeBlockEntity>
public class PneumaticTubeRenderer
extends com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<PneumaticTubeBlockEntity>
implements com.petrolpark.compat.create.core.tube.ITubeRenderer<PneumaticTubeBlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final floatprotected static final floatprotected static final intfinal dev.engine_room.flywheel.lib.model.baked.PartialModel[]Fields inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer
KINETIC_BLOCK, rainbowMode, REVERSED_CHUNK_BUFFER_LAYERS -
Constructor Summary
ConstructorsConstructorDescriptionPneumaticTubeRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatbulge(float x) protected net.createmod.catnip.render.SuperByteBuffergetRotatedModel(PneumaticTubeBlockEntity be, net.minecraft.world.level.block.state.BlockState state) dev.engine_room.flywheel.lib.model.baked.PartialModel[]protected booleangrowSegment(float[] segmentScales, int index, float scaleBoost) voidmodifySegmentScales(PneumaticTubeBlockEntity be, float[] segmentScales, float partialTicks) protected voidrenderSafe(PneumaticTubeBlockEntity be, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay) booleanshouldRenderOffScreen(PneumaticTubeBlockEntity pBlockEntity) Methods inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer
getAngleForBe, getRenderedBlockState, getRenderType, getRotationAxisOf, getRotationOffsetForPosition, kineticRotationTransform, renderRotatingBuffer, renderRotatingKineticBlock, shaft, standardKineticRotationTransformMethods inherited from class com.simibubi.create.foundation.blockEntity.renderer.SafeBlockEntityRenderer
getRenderBoundingBox, isInvalid, render, shouldCullItemMethods 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, shouldRenderMethods inherited from interface com.petrolpark.compat.create.core.tube.ITubeRenderer
renderTube
-
Field Details
-
segmentModels
public final dev.engine_room.flywheel.lib.model.baked.PartialModel[] segmentModels -
PADDING_SEGMENTS
protected static final int PADDING_SEGMENTS- See Also:
-
BULGE_WIDTH
protected static final float BULGE_WIDTH- See Also:
-
BULGE_HEIGHT
protected static final float BULGE_HEIGHT- See Also:
-
-
Constructor Details
-
PneumaticTubeRenderer
public PneumaticTubeRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context)
-
-
Method Details
-
renderSafe
protected void renderSafe(PneumaticTubeBlockEntity be, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay) - Overrides:
renderSafein classcom.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<PneumaticTubeBlockEntity>
-
getTubeSegmentModels
public dev.engine_room.flywheel.lib.model.baked.PartialModel[] getTubeSegmentModels(PneumaticTubeBlockEntity be) - Specified by:
getTubeSegmentModelsin interfacecom.petrolpark.compat.create.core.tube.ITubeRenderer<PneumaticTubeBlockEntity>
-
modifySegmentScales
public void modifySegmentScales(PneumaticTubeBlockEntity be, float[] segmentScales, float partialTicks) - Specified by:
modifySegmentScalesin interfacecom.petrolpark.compat.create.core.tube.ITubeRenderer<PneumaticTubeBlockEntity>
-
growSegment
protected boolean growSegment(float[] segmentScales, int index, float scaleBoost) -
bulge
protected float bulge(float x) -
getRotatedModel
protected net.createmod.catnip.render.SuperByteBuffer getRotatedModel(PneumaticTubeBlockEntity be, net.minecraft.world.level.block.state.BlockState state) - Overrides:
getRotatedModelin classcom.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<PneumaticTubeBlockEntity>
-
shouldRenderOffScreen
- Specified by:
shouldRenderOffScreenin interfacenet.minecraft.client.renderer.blockentity.BlockEntityRenderer<PneumaticTubeBlockEntity>
-