Class SkullBlockRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.SkullBlockRenderer
- All Implemented Interfaces:
BlockEntityRenderer<SkullBlockEntity,,SkullBlockRenderState> IBlockEntityRendererExtension<SkullBlockEntity>
public class SkullBlockRenderer
extends Object
implements BlockEntityRenderer<SkullBlockEntity,SkullBlockRenderState>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<SkullBlock.Type, SkullModelBase> private final PlayerSkinRenderCachestatic final Map<SkullBlock.Type, ResourceLocation> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SkullModelBasecreateModel(EntityModelSet pModelSet, SkullBlock.Type pType) voidextractRenderState(SkullBlockEntity p_446674_, SkullBlockRenderState p_446649_, float p_447371_, Vec3 p_445526_, ModelFeatureRenderer.CrumblingOverlay p_446270_) static RenderTypegetPlayerSkinRenderType(ResourceLocation pTextureLocation) getRenderBoundingBox(SkullBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.static RenderTypegetSkullRenderType(SkullBlock.Type pType, ResourceLocation pTextureLocation) private RenderTyperesolveSkullRenderType(SkullBlock.Type pType, SkullBlockEntity pBlockEntity) voidsubmit(SkullBlockRenderState p_445740_, PoseStack p_440693_, SubmitNodeCollector p_440619_, CameraRenderState p_451265_) static voidsubmitSkull(Direction pDirection, float pYRot, float pAnimationPos, PoseStack pPoseStack, SubmitNodeCollector pNodeCollector, int pPackedLight, SkullModelBase pModel, RenderType pRenderType, int pOutlineColor, ModelFeatureRenderer.CrumblingOverlay pCrumblingOverlay) 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
-
playerSkinRenderCache
-
-
Constructor Details
-
SkullBlockRenderer
-
-
Method Details
-
createModel
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<SkullBlockEntity,SkullBlockRenderState>
-
extractRenderState
public void extractRenderState(SkullBlockEntity p_446674_, SkullBlockRenderState p_446649_, float p_447371_, Vec3 p_445526_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446270_) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<SkullBlockEntity,SkullBlockRenderState>
-
submit
public void submit(SkullBlockRenderState p_445740_, PoseStack p_440693_, SubmitNodeCollector p_440619_, CameraRenderState p_451265_) - Specified by:
submitin interfaceBlockEntityRenderer<SkullBlockEntity,SkullBlockRenderState>
-
submitSkull
public static void submitSkull(@Nullable Direction pDirection, float pYRot, float pAnimationPos, PoseStack pPoseStack, SubmitNodeCollector pNodeCollector, int pPackedLight, SkullModelBase pModel, RenderType pRenderType, int pOutlineColor, @Nullable ModelFeatureRenderer.CrumblingOverlay pCrumblingOverlay) -
resolveSkullRenderType
-
getSkullRenderType
public static RenderType getSkullRenderType(SkullBlock.Type pType, @Nullable ResourceLocation pTextureLocation) -
getPlayerSkinRenderType
-
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
-