Class ChainedCogwheelRenderer

java.lang.Object
com.simibubi.create.foundation.blockEntity.renderer.SafeBlockEntityRenderer<ChainedCogwheelBlockEntity>
com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<ChainedCogwheelBlockEntity>
com.petrolpark.petrolsparts.content.chained_cogwheel.ChainedCogwheelRenderer
All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<ChainedCogwheelBlockEntity>, net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension<ChainedCogwheelBlockEntity>

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

    Fields
    Modifier and Type
    Field
    Description
    static final double
     

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

    KINETIC_BLOCK, rainbowMode, REVERSED_CHUNK_BUFFER_LAYERS
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static List<net.createmod.catnip.data.Pair<net.minecraft.world.phys.Vec3,Float>>
    getLinkPositionsAndRotations(net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.state.BlockState thisCog, net.minecraft.core.BlockPos otherPos, net.minecraft.world.level.block.state.BlockState otherCog, float cogAngle)
     
    protected net.minecraft.world.level.block.state.BlockState
     
    protected void
    renderSafe(ChainedCogwheelBlockEntity be, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay)
    Largely copied from the Create source code.

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

    getAngleForBe, 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
  • Field Details

  • Constructor Details

    • ChainedCogwheelRenderer

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

    • renderSafe

      protected void renderSafe(ChainedCogwheelBlockEntity be, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay)
      Largely copied from the Create source code.
      Overrides:
      renderSafe in class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<ChainedCogwheelBlockEntity>
    • getLinkPositionsAndRotations

      public static List<net.createmod.catnip.data.Pair<net.minecraft.world.phys.Vec3,Float>> getLinkPositionsAndRotations(net.minecraft.core.Direction.Axis axis, net.minecraft.world.level.block.state.BlockState thisCog, net.minecraft.core.BlockPos otherPos, net.minecraft.world.level.block.state.BlockState otherCog, float cogAngle)
      Parameters:
      axis -
      thisCog -
      otherPos - Relative position of lower corner of partner Cogwheel
      otherCog -
      Returns:
    • getRenderedBlockState

      protected net.minecraft.world.level.block.state.BlockState getRenderedBlockState(ChainedCogwheelBlockEntity be)
      Overrides:
      getRenderedBlockState in class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<ChainedCogwheelBlockEntity>