Class EncasedCornerShaftRenderer
java.lang.Object
com.simibubi.create.foundation.blockEntity.renderer.SafeBlockEntityRenderer<CornerShaftBlockEntity>
com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer<CornerShaftBlockEntity>
petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.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
FieldsModifier and TypeFieldDescriptionprotected final dev.engine_room.flywheel.lib.model.baked.PartialModelFields inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer
KINETIC_BLOCK, rainbowMode, REVERSED_CHUNK_BUFFER_LAYERS -
Constructor Summary
ConstructorsConstructorDescriptionEncasedCornerShaftRenderer(dev.engine_room.flywheel.lib.model.baked.PartialModel side, net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context) -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.core.Direction.AxisgetAxis(net.minecraft.core.Direction shaft1Direction, net.minecraft.core.Direction shaft2Direction) protected net.minecraft.core.DirectiongetSourceFacing(CornerShaftBlockEntity blockEntity) protected floatgetSpeed(CornerShaftBlockEntity blockEntity, net.minecraft.core.Direction face) protected voidrenderMiddle(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 voidrenderSafe(CornerShaftBlockEntity cornerShaftBlockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay) static EncasedCornerShaftRenderervanilla(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context) Methods inherited from class com.simibubi.create.content.kinetics.base.KineticBlockEntityRenderer
getAngleForBe, getRenderedBlockState, getRenderType, getRotatedModel, 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, shouldRender, shouldRenderOffScreen
-
Field Details
-
side
protected final dev.engine_room.flywheel.lib.model.baked.PartialModel side
-
-
Constructor Details
-
EncasedCornerShaftRenderer
public EncasedCornerShaftRenderer(dev.engine_room.flywheel.lib.model.baked.PartialModel side, net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context)
-
-
Method Details
-
vanilla
public static EncasedCornerShaftRenderer vanilla(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context) -
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:
renderSafein classcom.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
-
getSourceFacing
-
getAxis
protected net.minecraft.core.Direction.Axis getAxis(net.minecraft.core.Direction shaft1Direction, net.minecraft.core.Direction shaft2Direction)
-