Class BannerRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.BannerRenderer
- All Implemented Interfaces:
BlockEntityRenderer<BannerBlockEntity>,IBlockEntityRendererExtension<BannerBlockEntity>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinitiongetRenderBoundingBox(BannerBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidrender(BannerBlockEntity p_112052_, float p_112053_, PoseStack p_112054_, MultiBufferSource p_112055_, int p_112056_, int p_112057_) private static voidrenderPatternLayer(PoseStack p_332737_, MultiBufferSource p_332758_, int p_332821_, int p_332828_, ModelPart p_332732_, Material p_332704_, DyeColor p_332728_) static voidrenderPatterns(PoseStack p_112066_, MultiBufferSource p_112067_, int p_112068_, int p_112069_, ModelPart p_112070_, Material p_112071_, boolean p_112072_, DyeColor p_332660_, BannerPatternLayers p_330986_) static voidrenderPatterns(PoseStack p_112075_, MultiBufferSource p_112076_, int p_112077_, int p_112078_, ModelPart p_112079_, Material p_112080_, boolean p_112081_, DyeColor p_332652_, BannerPatternLayers p_331851_, boolean p_332823_) 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
-
BANNER_WIDTH
private static final int BANNER_WIDTH- See Also:
-
BANNER_HEIGHT
private static final int BANNER_HEIGHT- See Also:
-
MAX_PATTERNS
private static final int MAX_PATTERNS- See Also:
-
FLAG
- See Also:
-
POLE
- See Also:
-
BAR
- See Also:
-
flag
-
pole
-
bar
-
-
Constructor Details
-
BannerRenderer
-
-
Method Details
-
createBodyLayer
-
render
public void render(BannerBlockEntity p_112052_, float p_112053_, PoseStack p_112054_, MultiBufferSource p_112055_, int p_112056_, int p_112057_) - Specified by:
renderin interfaceBlockEntityRenderer<BannerBlockEntity>
-
renderPatterns
public static void renderPatterns(PoseStack p_112066_, MultiBufferSource p_112067_, int p_112068_, int p_112069_, ModelPart p_112070_, Material p_112071_, boolean p_112072_, DyeColor p_332660_, BannerPatternLayers p_330986_) -
renderPatterns
public static void renderPatterns(PoseStack p_112075_, MultiBufferSource p_112076_, int p_112077_, int p_112078_, ModelPart p_112079_, Material p_112080_, boolean p_112081_, DyeColor p_332652_, BannerPatternLayers p_331851_, boolean p_332823_) -
renderPatternLayer
private static void renderPatternLayer(PoseStack p_332737_, MultiBufferSource p_332758_, int p_332821_, int p_332828_, ModelPart p_332732_, Material p_332704_, DyeColor p_332728_) -
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<BannerBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-