Class BeaconRenderer<T extends BlockEntity & BeaconBeamOwner>
java.lang.Object
net.minecraft.client.renderer.blockentity.BeaconRenderer<T>
- All Implemented Interfaces:
BlockEntityRenderer<T>
,IBlockEntityRendererExtension<T>
public class BeaconRenderer<T extends BlockEntity & BeaconBeamOwner>
extends Object
implements BlockEntityRenderer<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final ResourceLocation
private static final float
static final int
static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addVertex
(PoseStack.Pose p_324495_, VertexConsumer p_253894_, int p_254357_, int p_350652_, float p_253871_, float p_253841_, float p_254568_, float p_254361_) getRenderBoundingBox
(T blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.int
void
render
(T p_112149_, float p_112150_, PoseStack p_112151_, MultiBufferSource p_112152_, int p_112153_, int p_112154_, Vec3 p_401093_) private static void
renderBeaconBeam
(PoseStack p_112185_, MultiBufferSource p_112186_, float p_112188_, float p_401272_, long p_112190_, int p_112191_, int p_112192_, int p_350457_) static void
renderBeaconBeam
(PoseStack p_112177_, MultiBufferSource p_112178_, ResourceLocation p_350504_, float p_112179_, float p_350618_, long p_112180_, int p_112181_, int p_112182_, int p_350915_, float p_350604_, float p_350669_) private static void
renderPart
(PoseStack p_112156_, VertexConsumer p_112157_, int p_112162_, int p_112163_, int p_351014_, float p_112158_, float p_112159_, float p_112160_, float p_112161_, float p_112164_, float p_112165_, float p_112166_, float p_112167_, float p_112168_, float p_112169_, float p_112170_, float p_112171_) private static void
renderQuad
(PoseStack.Pose p_323955_, VertexConsumer p_112122_, int p_112127_, int p_112128_, int p_350566_, float p_112123_, float p_112124_, float p_112125_, float p_112126_, float p_112129_, float p_112130_, float p_112131_, float p_112132_) boolean
shouldRender
(T p_173534_, Vec3 p_173535_) boolean
shouldRenderOffScreen
(T p_112147_)
-
Field Details
-
BEAM_LOCATION
-
MAX_RENDER_Y
public static final int MAX_RENDER_Y- See Also:
-
BEAM_SCALE_THRESHOLD
private static final float BEAM_SCALE_THRESHOLD- See Also:
-
SOLID_BEAM_RADIUS
public static final float SOLID_BEAM_RADIUS- See Also:
-
BEAM_GLOW_RADIUS
public static final float BEAM_GLOW_RADIUS- See Also:
-
-
Constructor Details
-
BeaconRenderer
-
-
Method Details
-
render
public void render(T p_112149_, float p_112150_, PoseStack p_112151_, MultiBufferSource p_112152_, int p_112153_, int p_112154_, Vec3 p_401093_) - Specified by:
render
in interfaceBlockEntityRenderer<T extends BlockEntity & BeaconBeamOwner>
-
renderBeaconBeam
private static void renderBeaconBeam(PoseStack p_112185_, MultiBufferSource p_112186_, float p_112188_, float p_401272_, long p_112190_, int p_112191_, int p_112192_, int p_350457_) -
renderBeaconBeam
public static void renderBeaconBeam(PoseStack p_112177_, MultiBufferSource p_112178_, ResourceLocation p_350504_, float p_112179_, float p_350618_, long p_112180_, int p_112181_, int p_112182_, int p_350915_, float p_350604_, float p_350669_) -
renderPart
private static void renderPart(PoseStack p_112156_, VertexConsumer p_112157_, int p_112162_, int p_112163_, int p_351014_, float p_112158_, float p_112159_, float p_112160_, float p_112161_, float p_112164_, float p_112165_, float p_112166_, float p_112167_, float p_112168_, float p_112169_, float p_112170_, float p_112171_) -
renderQuad
private static void renderQuad(PoseStack.Pose p_323955_, VertexConsumer p_112122_, int p_112127_, int p_112128_, int p_350566_, float p_112123_, float p_112124_, float p_112125_, float p_112126_, float p_112129_, float p_112130_, float p_112131_, float p_112132_) -
addVertex
private static void addVertex(PoseStack.Pose p_324495_, VertexConsumer p_253894_, int p_254357_, int p_350652_, float p_253871_, float p_253841_, float p_254568_, float p_254361_) -
shouldRenderOffScreen
- Specified by:
shouldRenderOffScreen
in interfaceBlockEntityRenderer<T extends BlockEntity & BeaconBeamOwner>
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistance
in interfaceBlockEntityRenderer<T extends BlockEntity & BeaconBeamOwner>
-
shouldRender
- Specified by:
shouldRender
in interfaceBlockEntityRenderer<T extends BlockEntity & BeaconBeamOwner>
-
getRenderBoundingBox
Description copied from interface:IBlockEntityRendererExtension
Return anAABB
that controls the visible scope of thisBlockEntityRenderer
. Defaults to the unit cube at the given position.AABB.INFINITE
can be used to declare the BER should be visible everywhere.- Specified by:
getRenderBoundingBox
in interfaceIBlockEntityRendererExtension<T extends BlockEntity & BeaconBeamOwner>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-