Class SpawnerRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.SpawnerRenderer
- All Implemented Interfaces:
BlockEntityRenderer<SpawnerBlockEntity>
,IBlockEntityRendererExtension<SpawnerBlockEntity>
-
Field Summary
Fields inherited from interface net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox
(SpawnerBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.void
render
(SpawnerBlockEntity p_112563_, float p_112564_, PoseStack p_112565_, MultiBufferSource p_112566_, int p_112567_, int p_112568_) static void
renderEntityInSpawner
(float p_311943_, PoseStack p_312805_, MultiBufferSource p_312394_, int p_311996_, Entity p_312223_, EntityRenderDispatcher p_312703_, double p_312192_, double p_312929_) 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
-
entityRenderer
-
-
Constructor Details
-
SpawnerRenderer
-
-
Method Details
-
render
public void render(SpawnerBlockEntity p_112563_, float p_112564_, PoseStack p_112565_, MultiBufferSource p_112566_, int p_112567_, int p_112568_) - Specified by:
render
in interfaceBlockEntityRenderer<SpawnerBlockEntity>
-
renderEntityInSpawner
public static void renderEntityInSpawner(float p_311943_, PoseStack p_312805_, MultiBufferSource p_312394_, int p_311996_, Entity p_312223_, EntityRenderDispatcher p_312703_, double p_312192_, double p_312929_) -
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<SpawnerBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-