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 SkullModelBasecreateModel(EntityModelSet modelSet, SkullBlock.Type type) static RenderTypegetPlayerSkinRenderType(ResourceLocation textureLocation) getRenderBoundingBox(SkullBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.static RenderTypegetRenderType(SkullBlock.Type type, ResolvableProfile profile) static RenderTypegetSkullRenderType(SkullBlock.Type type, ResourceLocation textureLocation) voidrender(SkullBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) static voidrenderSkull(Direction direction, float yRot, float mouthAnimation, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, SkullModelBase model, RenderType renderType) 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
-
createModel
-
render
public void render(SkullBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) - Specified by:
renderin interfaceBlockEntityRenderer<SkullBlockEntity>
-
renderSkull
public static void renderSkull(@Nullable Direction direction, float yRot, float mouthAnimation, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, SkullModelBase model, RenderType renderType) -
getRenderType
-
getSkullRenderType
public static RenderType getSkullRenderType(SkullBlock.Type type, @Nullable ResourceLocation textureLocation) -
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
-