Class KineticTileEntityRenderer
java.lang.Object
com.simibubi.create.foundation.tileEntity.renderer.SafeTileEntityRenderer<KineticTileEntity>
com.simibubi.create.content.contraptions.base.KineticTileEntityRenderer
- All Implemented Interfaces:
net.minecraft.client.renderer.blockentity.BlockEntityRenderer<KineticTileEntity>
- Direct Known Subclasses:
AbstractPulleyRenderer,ArmRenderer,BearingRenderer,BracketedKineticTileRenderer,CopperBacktankRenderer,CreativeMotorRenderer,CuckooClockRenderer,DrillRenderer,EjectorRenderer,EncasedCogRenderer,EncasedFanRenderer,FluidValveRenderer,FlywheelRenderer,GantryCarriageRenderer,GaugeRenderer,GearboxRenderer,HandCrankRenderer,MechanicalMixerRenderer,MechanicalPistonRenderer,MechanicalPressRenderer,MillstoneRenderer,PumpRenderer,ShaftRenderer,SplitShaftRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SuperByteBufferCache.Compartment<net.minecraft.world.level.block.state.BlockState>static boolean -
Constructor Summary
ConstructorsConstructorDescriptionKineticTileEntityRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context) -
Method Summary
Modifier and TypeMethodDescriptionstatic floatgetAngleForTe(KineticTileEntity te, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction.Axis axis) protected net.minecraft.world.level.block.state.BlockStateprotected SuperByteBufferstatic net.minecraft.core.Direction.Axisprotected static floatgetRotationOffsetForPosition(KineticTileEntity te, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction.Axis axis) static SuperByteBufferkineticRotationTransform(SuperByteBuffer buffer, KineticTileEntity te, net.minecraft.core.Direction.Axis axis, float angle, int light) static voidrenderRotatingBuffer(KineticTileEntity te, SuperByteBuffer superBuffer, com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer buffer, int light) static voidrenderRotatingKineticBlock(KineticTileEntity te, net.minecraft.world.level.block.state.BlockState renderedState, com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer buffer, int light) protected voidrenderSafe(KineticTileEntity te, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay) static net.minecraft.world.level.block.state.BlockStateshaft(net.minecraft.core.Direction.Axis axis) static SuperByteBufferstandardKineticRotationTransform(SuperByteBuffer buffer, KineticTileEntity te, int light) Methods inherited from class com.simibubi.create.foundation.tileEntity.renderer.SafeTileEntityRenderer
isInvalid, renderMethods 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
-
KINETIC_TILE
public static final SuperByteBufferCache.Compartment<net.minecraft.world.level.block.state.BlockState> KINETIC_TILE -
rainbowMode
public static boolean rainbowMode
-
-
Constructor Details
-
KineticTileEntityRenderer
public KineticTileEntityRenderer(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context)
-
-
Method Details
-
renderSafe
protected void renderSafe(KineticTileEntity te, float partialTicks, com.mojang.blaze3d.vertex.PoseStack ms, net.minecraft.client.renderer.MultiBufferSource buffer, int light, int overlay) - Specified by:
renderSafein classSafeTileEntityRenderer<KineticTileEntity>
-
renderRotatingKineticBlock
public static void renderRotatingKineticBlock(KineticTileEntity te, net.minecraft.world.level.block.state.BlockState renderedState, com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer buffer, int light) -
renderRotatingBuffer
public static void renderRotatingBuffer(KineticTileEntity te, SuperByteBuffer superBuffer, com.mojang.blaze3d.vertex.PoseStack ms, com.mojang.blaze3d.vertex.VertexConsumer buffer, int light) -
getAngleForTe
public static float getAngleForTe(KineticTileEntity te, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction.Axis axis) -
standardKineticRotationTransform
public static SuperByteBuffer standardKineticRotationTransform(SuperByteBuffer buffer, KineticTileEntity te, int light) -
kineticRotationTransform
public static SuperByteBuffer kineticRotationTransform(SuperByteBuffer buffer, KineticTileEntity te, net.minecraft.core.Direction.Axis axis, float angle, int light) -
getRotationOffsetForPosition
protected static float getRotationOffsetForPosition(KineticTileEntity te, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction.Axis axis) -
shaft
public static net.minecraft.world.level.block.state.BlockState shaft(net.minecraft.core.Direction.Axis axis) -
getRotationAxisOf
-
getRenderedBlockState
protected net.minecraft.world.level.block.state.BlockState getRenderedBlockState(KineticTileEntity te) -
getRotatedModel
-