Class BannerRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.BannerRenderer
- All Implemented Interfaces:
BlockEntityRenderer<BannerBlockEntity>,IBlockEntityRendererExtension<BannerBlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final floatprivate final BannerFlagModelprivate final BannerModelprivate final BannerFlagModelprivate final BannerModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox(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_, Vec3 p_401132_) private static voidrenderBanner(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, float rotation, BannerModel standingModel, BannerFlagModel standingFlagModel, float angle, DyeColor baseColor, BannerPatternLayers patterns) voidrenderInHand(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, DyeColor baseColor, BannerPatternLayers patterns) private static voidrenderPatternLayer(PoseStack poseStack, MultiBufferSource buffer, int packedLight, int packedOverlay, ModelPart flagPart, Material material, DyeColor color) static voidrenderPatterns(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, ModelPart flagPart, Material flagMaterial, boolean banner, DyeColor baseColor, BannerPatternLayers patterns) static voidrenderPatterns(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, ModelPart flagPart, Material flagMaterial, boolean banner, DyeColor baseColor, BannerPatternLayers patterns, boolean withGlint, boolean noEntity) 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
-
MAX_PATTERNS
private static final int MAX_PATTERNS- See Also:
-
SIZE
private static final float SIZE- See Also:
-
standingModel
-
wallModel
-
standingFlagModel
-
wallFlagModel
-
-
Constructor Details
-
BannerRenderer
-
BannerRenderer
-
-
Method Details
-
render
public void render(BannerBlockEntity p_112052_, float p_112053_, PoseStack p_112054_, MultiBufferSource p_112055_, int p_112056_, int p_112057_, Vec3 p_401132_) - Specified by:
renderin interfaceBlockEntityRenderer<BannerBlockEntity>
-
renderInHand
public void renderInHand(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, DyeColor baseColor, BannerPatternLayers patterns) -
renderBanner
private static void renderBanner(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, float rotation, BannerModel standingModel, BannerFlagModel standingFlagModel, float angle, DyeColor baseColor, BannerPatternLayers patterns) -
renderPatterns
public static void renderPatterns(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, ModelPart flagPart, Material flagMaterial, boolean banner, DyeColor baseColor, BannerPatternLayers patterns) - Parameters:
banner- iftrue, uses banner material; otherwise iffalseuses shield material
-
renderPatterns
public static void renderPatterns(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, ModelPart flagPart, Material flagMaterial, boolean banner, DyeColor baseColor, BannerPatternLayers patterns, boolean withGlint, boolean noEntity) -
renderPatternLayer
private static void renderPatternLayer(PoseStack poseStack, MultiBufferSource buffer, int packedLight, int packedOverlay, ModelPart flagPart, Material material, DyeColor color) -
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
-