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, Identifier> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SkullModelBasecreateModel(EntityModelSet modelSet, SkullBlock.Type type) voidextractRenderState(SkullBlockEntity p_446674_, SkullBlockRenderState p_446649_, float p_447371_, Vec3 p_445526_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446270_) static RenderTypegetPlayerSkinRenderType(Identifier texture) getRenderBoundingBox(SkullBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.static RenderTypegetSkullRenderType(SkullBlock.Type skullType, @Nullable Identifier texture) private RenderTyperesolveSkullRenderType(SkullBlock.Type skullType, SkullBlockEntity blockEntity) voidsubmit(SkullBlockRenderState p_445740_, PoseStack p_440693_, SubmitNodeCollector p_440619_, CameraRenderState p_451265_) static voidsubmitSkull(@Nullable Direction direction, float rotation, float animationProgress, PoseStack poseStack, SubmitNodeCollector nodeCollector, int packedLight, SkullModelBase model, RenderType renderType, int outlineColor, @Nullable ModelFeatureRenderer.CrumblingOverlay crumblingOverlay) 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 direction, float rotation, float animationProgress, PoseStack poseStack, SubmitNodeCollector nodeCollector, int packedLight, SkullModelBase model, RenderType renderType, int outlineColor, @Nullable ModelFeatureRenderer.CrumblingOverlay crumblingOverlay) -
resolveSkullRenderType
-
getSkullRenderType
public static RenderType getSkullRenderType(SkullBlock.Type skullType, @Nullable Identifier texture) -
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
-