Class SignRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.SignRenderer
- All Implemented Interfaces:
BlockEntityRenderer<SignBlockEntity>
,IBlockEntityRendererExtension<SignBlockEntity>
- Direct Known Subclasses:
HangingSignRenderer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final Font
private static final int
private static final float
private final Map<WoodType,
SignRenderer.SignModel> private static final String
private static final Vec3
Fields inherited from interface net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinition
static SignRenderer.SignModel
createSignModel
(EntityModelSet p_173647_, WoodType p_173648_) static int
getDarkColor
(SignText p_277914_) getRenderBoundingBox
(SignBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.(package private) Material
getSignMaterial
(WoodType p_251961_) float
float
(package private) Vec3
(package private) static boolean
isOutlineVisible
(BlockPos p_277741_, int p_278022_) void
render
(SignBlockEntity p_112497_, float p_112498_, PoseStack p_112499_, MultiBufferSource p_112500_, int p_112501_, int p_112502_) (package private) void
renderSign
(PoseStack p_279104_, MultiBufferSource p_279408_, int p_279494_, int p_279344_, WoodType p_279170_, Model p_279159_) (package private) void
renderSignModel
(PoseStack p_250252_, int p_249399_, int p_249042_, Model p_250082_, VertexConsumer p_251093_) (package private) void
renderSignText
(BlockPos p_279403_, SignText p_279361_, PoseStack p_279234_, MultiBufferSource p_279338_, int p_279300_, int p_279179_, int p_279357_, boolean p_279325_) (package private) void
renderSignWithText
(SignBlockEntity p_279389_, PoseStack p_279331_, MultiBufferSource p_279303_, int p_279396_, int p_279203_, BlockState p_279391_, SignBlock p_279224_, WoodType p_279162_, Model p_279444_) (package private) void
translateSign
(PoseStack p_278074_, float p_277875_, BlockState p_277559_) private void
translateSignText
(PoseStack p_279133_, boolean p_279134_, Vec3 p_279280_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
STICK
- See Also:
-
BLACK_TEXT_OUTLINE_COLOR
private static final int BLACK_TEXT_OUTLINE_COLOR- See Also:
-
OUTLINE_RENDER_DISTANCE
private static final int OUTLINE_RENDER_DISTANCE -
RENDER_SCALE
private static final float RENDER_SCALE- See Also:
-
TEXT_OFFSET
-
signModels
-
font
-
-
Constructor Details
-
SignRenderer
-
-
Method Details
-
render
public void render(SignBlockEntity p_112497_, float p_112498_, PoseStack p_112499_, MultiBufferSource p_112500_, int p_112501_, int p_112502_) - Specified by:
render
in interfaceBlockEntityRenderer<SignBlockEntity>
-
getSignModelRenderScale
public float getSignModelRenderScale() -
getSignTextRenderScale
public float getSignTextRenderScale() -
renderSignWithText
void renderSignWithText(SignBlockEntity p_279389_, PoseStack p_279331_, MultiBufferSource p_279303_, int p_279396_, int p_279203_, BlockState p_279391_, SignBlock p_279224_, WoodType p_279162_, Model p_279444_) -
translateSign
-
renderSign
void renderSign(PoseStack p_279104_, MultiBufferSource p_279408_, int p_279494_, int p_279344_, WoodType p_279170_, Model p_279159_) -
renderSignModel
void renderSignModel(PoseStack p_250252_, int p_249399_, int p_249042_, Model p_250082_, VertexConsumer p_251093_) -
getSignMaterial
-
renderSignText
void renderSignText(BlockPos p_279403_, SignText p_279361_, PoseStack p_279234_, MultiBufferSource p_279338_, int p_279300_, int p_279179_, int p_279357_, boolean p_279325_) -
translateSignText
-
getTextOffset
Vec3 getTextOffset() -
isOutlineVisible
-
getDarkColor
-
createSignModel
-
createSignLayer
-
getRenderBoundingBox
Description copied from interface:IBlockEntityRendererExtension
Return anAABB
that controls the visible scope of thisBlockEntityRenderer
. Defaults to the unit cube at the given position.- Specified by:
getRenderBoundingBox
in interfaceIBlockEntityRendererExtension<SignBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-