Class SkullBlockRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.SkullBlockRenderer
- All Implemented Interfaces:
BlockEntityRenderer<SkullBlockEntity>
,IBlockEntityRendererExtension<SkullBlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function
<SkullBlock.Type, SkullModelBase> static final Map
<SkullBlock.Type, ResourceLocation> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SkullModelBase
createModel
(EntityModelSet pModelSet, SkullBlock.Type pType) static RenderType
getPlayerSkinRenderType
(ResourceLocation pTextureLocation) getRenderBoundingBox
(SkullBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.static RenderType
getRenderType
(SkullBlock.Type pType, ResolvableProfile pProfile) static RenderType
getSkullRenderType
(SkullBlock.Type pType, ResourceLocation pTextureLocation) void
render
(SkullBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) static void
renderSkull
(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, wait
Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
modelByType
-
SKIN_BY_TYPE
-
-
Constructor Details
-
SkullBlockRenderer
-
-
Method Details
-
createModel
-
render
public void render(SkullBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) - Specified by:
render
in 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
-
getSkullRenderType
public static RenderType getSkullRenderType(SkullBlock.Type pType, @Nullable ResourceLocation pTextureLocation) -
getPlayerSkinRenderType
-
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<SkullBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-