Class SkullBlockRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.SkullBlockRenderer
- All Implemented Interfaces:
BlockEntityRenderer<SkullBlockEntity>,IBlockEntityRendererExtension<SkullBlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<SkullBlock.Type, SkullModelBase> static final Map<SkullBlock.Type, ResourceLocation> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<SkullBlock.Type, SkullModelBase> createSkullRenderers(EntityModelSet pEntityModelSet) getRenderBoundingBox(SkullBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.static RenderTypegetRenderType(SkullBlock.Type pType, ResolvableProfile pProfile) voidrender(SkullBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) static voidrenderSkull(Direction pDirection, float pYRot, float pMouthAnimation, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, SkullModelBase pModel, RenderType pRenderType) 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
-
modelByType
-
SKIN_BY_TYPE
-
-
Constructor Details
-
SkullBlockRenderer
-
-
Method Details
-
createSkullRenderers
public static Map<SkullBlock.Type,SkullModelBase> createSkullRenderers(EntityModelSet pEntityModelSet) -
render
public void render(SkullBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) - Specified by:
renderin interfaceBlockEntityRenderer<SkullBlockEntity>
-
renderSkull
public static void renderSkull(@Nullable Direction pDirection, float pYRot, float pMouthAnimation, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, SkullModelBase pModel, RenderType pRenderType) -
getRenderType
-
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<SkullBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-