Class BrushableBlockRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.BrushableBlockRenderer
- All Implemented Interfaces:
BlockEntityRenderer<BrushableBlockEntity,,BrushableBlockRenderState> IBlockEntityRendererExtension<BrushableBlockEntity>
public class BrushableBlockRenderer
extends Object
implements BlockEntityRenderer<BrushableBlockEntity,BrushableBlockRenderState>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(BrushableBlockEntity p_446197_, BrushableBlockRenderState p_445907_, float p_446852_, Vec3 p_447180_, ModelFeatureRenderer.CrumblingOverlay p_445754_) getRenderBoundingBox(BrushableBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidsubmit(BrushableBlockRenderState p_445580_, PoseStack p_439885_, SubmitNodeCollector p_439013_, CameraRenderState p_450972_) private float[]translations(Direction direction, int dustedLevel) Methods 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
-
itemModelResolver
-
-
Constructor Details
-
BrushableBlockRenderer
-
-
Method Details
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<BrushableBlockEntity,BrushableBlockRenderState>
-
extractRenderState
public void extractRenderState(BrushableBlockEntity p_446197_, BrushableBlockRenderState p_445907_, float p_446852_, Vec3 p_447180_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_445754_) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<BrushableBlockEntity,BrushableBlockRenderState>
-
submit
public void submit(BrushableBlockRenderState p_445580_, PoseStack p_439885_, SubmitNodeCollector p_439013_, CameraRenderState p_450972_) - Specified by:
submitin interfaceBlockEntityRenderer<BrushableBlockEntity,BrushableBlockRenderState>
-
translations
-
getRenderBoundingBox
Description copied from interface:IBlockEntityRendererExtensionReturn anAABBthat controls the visible scope of thisBlockEntityRenderer. Defaults to the unit cube at the given position.AABB.INFINITEcan be used to declare the BER should be visible everywhere.- Specified by:
getRenderBoundingBoxin interfaceIBlockEntityRendererExtension<BrushableBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-