Class SpawnerRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.SpawnerRenderer
- All Implemented Interfaces:
BlockEntityRenderer<SpawnerBlockEntity>,IBlockEntityRendererExtension<SpawnerBlockEntity>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox(SpawnerBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidrender(SpawnerBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) static voidrenderEntityInSpawner(float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, Entity pEntity, EntityRenderDispatcher pEntityRenderer, double pOSpin, double pSpin) 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
-
entityRenderer
-
-
Constructor Details
-
SpawnerRenderer
-
-
Method Details
-
render
public void render(SpawnerBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) - Specified by:
renderin interfaceBlockEntityRenderer<SpawnerBlockEntity>
-
renderEntityInSpawner
public static void renderEntityInSpawner(float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, Entity pEntity, EntityRenderDispatcher pEntityRenderer, double pOSpin, double pSpin) -
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<SpawnerBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-