Package org.moddingx.libx.render.block
Class DirectionalBlockRenderer<T extends net.minecraft.world.level.block.entity.BlockEntity>
java.lang.Object
org.moddingx.libx.render.block.TransformingBlockRenderer<T>
org.moddingx.libx.render.block.DirectionalBlockRenderer<T>
- All Implemented Interfaces:
 net.minecraft.client.renderer.blockentity.BlockEntityRenderer<T>,net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension<T>
public abstract class DirectionalBlockRenderer<T extends net.minecraft.world.level.block.entity.BlockEntity>
extends TransformingBlockRenderer<T>
A 
BlockEntityRenderer that before calling the actual render code rotates the PoseStack
 depending on the facing. This may only be used with blocks that have the property BlockStateProperties.FACING.
 The block entity should be rendered as if it was facing up.- 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class org.moddingx.libx.render.block.TransformingBlockRenderer
doRender, 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, shouldRenderOffScreenMethods inherited from interface net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension
getRenderBoundingBox 
- 
Constructor Details
- 
DirectionalBlockRenderer
public DirectionalBlockRenderer() 
 - 
 - 
Method Details
- 
transform
protected final void transform(@Nonnull T blockEntity, float partialTicks, @Nonnull com.mojang.blaze3d.vertex.PoseStack poseStack) Description copied from class:TransformingBlockRendererApplies the pre-redner transformation to thepose stack.- Specified by:
 transformin classTransformingBlockRenderer<T extends net.minecraft.world.level.block.entity.BlockEntity>
 
 -