java.lang.Object
com.simibubi.create.foundation.blockEntity.renderer.SafeBlockEntityRenderer<PneumaticTubeBlockEntity>
com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<PneumaticTubeBlockEntity>
com.petrolpark.petrolsparts.content.logistics.pneumaticTube.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

    Fields
    Modifier and Type
    Field
    Description
    protected static final float
     
    protected static final float
     
    protected static final int
     
    final 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

    Constructors
    Constructor
    Description
    PneumaticTubeRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected float
    bulge(float x)
     
    protected net.createmod.catnip.render.SuperByteBuffer
    getRotatedModel(PneumaticTubeBlockEntity be, net.minecraft.world.level.block.state.BlockState state)
     
    dev.engine_room.flywheel.lib.model.baked.PartialModel[]
     
    protected boolean
    growSegment(float[] segmentScales, int index, float scaleBoost)
     
    void
    modifySegmentScales(PneumaticTubeBlockEntity be, float[] segmentScales, float partialTicks)
     
    protected void
    renderSafe(PneumaticTubeBlockEntity be, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay)
     
    boolean
     

    Methods inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer

    getAngleForBe, getRenderedBlockState, getRenderType, getRotationAxisOf, getRotationOffsetForPosition, kineticRotationTransform, renderRotatingBuffer, renderRotatingKineticBlock, shaft, standardKineticRotationTransform

    Methods inherited from class com.simibubi.create.foundation.blockEntity.renderer.SafeBlockEntityRenderer

    getRenderBoundingBox, isInvalid, render, shouldCullItem

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer

    getViewDistance, shouldRender

    Methods 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:
      renderSafe in class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<PneumaticTubeBlockEntity>
    • getTubeSegmentModels

      public dev.engine_room.flywheel.lib.model.baked.PartialModel[] getTubeSegmentModels(PneumaticTubeBlockEntity be)
      Specified by:
      getTubeSegmentModels in interface com.petrolpark.compat.create.core.tube.ITubeRenderer<PneumaticTubeBlockEntity>
    • modifySegmentScales

      public void modifySegmentScales(PneumaticTubeBlockEntity be, float[] segmentScales, float partialTicks)
      Specified by:
      modifySegmentScales in interface com.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:
      getRotatedModel in class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<PneumaticTubeBlockEntity>
    • shouldRenderOffScreen

      public boolean shouldRenderOffScreen(PneumaticTubeBlockEntity pBlockEntity)
      Specified by:
      shouldRenderOffScreen in interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer<PneumaticTubeBlockEntity>