Class EncasedCornerShaftRenderer

java.lang.Object
com.simibubi.create.foundation.blockEntity.renderer.SafeBlockEntityRenderer<CornerShaftBlockEntity>
com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<CornerShaftBlockEntity>
com.petrolpark.petrolsparts.content.corner_shaft.EncasedCornerShaftRenderer
All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<CornerShaftBlockEntity>, net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension<CornerShaftBlockEntity>
Direct Known Subclasses:
CornerShaftRenderer

public class EncasedCornerShaftRenderer extends com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<CornerShaftBlockEntity>
  • Field Summary

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

    KINETIC_BLOCK, rainbowMode, REVERSED_CHUNK_BUFFER_LAYERS
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected net.minecraft.core.Direction.Axis
    getAxis(net.minecraft.core.Direction shaft1Direction, net.minecraft.core.Direction shaft2Direction)
     
    protected net.minecraft.core.Direction
     
    protected float
    getSpeed(CornerShaftBlockEntity blockEntity, net.minecraft.core.Direction face)
     
    protected void
    renderMiddle(CornerShaftBlockEntity be, net.minecraft.world.level.block.state.BlockState state, com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer vc, int light, net.minecraft.core.Direction shaft1Direction, net.minecraft.core.Direction shaft2Direction, float gimbal1Angle, float gimbal2Angle)
     
    protected void
    renderSafe(CornerShaftBlockEntity cornerShaftBlockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay)
     

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

    getAngleForBe, getRenderedBlockState, getRenderType, getRotatedModel, 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, shouldRenderOffScreen
  • Constructor Details

    • EncasedCornerShaftRenderer

      public EncasedCornerShaftRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context)
  • Method Details

    • renderSafe

      protected void renderSafe(CornerShaftBlockEntity cornerShaftBlockEntity, 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<CornerShaftBlockEntity>
    • renderMiddle

      protected void renderMiddle(CornerShaftBlockEntity be, net.minecraft.world.level.block.state.BlockState state, com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer vc, int light, net.minecraft.core.Direction shaft1Direction, net.minecraft.core.Direction shaft2Direction, float gimbal1Angle, float gimbal2Angle)
    • getSpeed

      protected float getSpeed(CornerShaftBlockEntity blockEntity, net.minecraft.core.Direction face)
    • getSourceFacing

      protected net.minecraft.core.Direction getSourceFacing(CornerShaftBlockEntity blockEntity)
    • getAxis

      protected net.minecraft.core.Direction.Axis getAxis(net.minecraft.core.Direction shaft1Direction, net.minecraft.core.Direction shaft2Direction)