Class DecoratedPotRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.DecoratedPotRenderer
- All Implemented Interfaces:
BlockEntityRenderer<DecoratedPotBlockEntity>,IBlockEntityRendererExtension<DecoratedPotBlockEntity>
public class DecoratedPotRenderer
extends Object
implements BlockEntityRenderer<DecoratedPotBlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final ModelPartprivate final ModelPartprivate static final Stringprivate static final Stringprivate final ModelPartprivate static final Stringprivate final ModelPartprivate final ModelPartprivate static final Stringprivate static final Stringprivate final ModelPartprivate final ModelPartprivate static final Stringprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinitionstatic LayerDefinitiongetRenderBoundingBox(DecoratedPotBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.private static MaterialgetSideMaterial(Optional<Item> item) voidrender(DecoratedPotBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay) private voidrenderSide(ModelPart modelPart, PoseStack poseStack, MultiBufferSource buffer, int packedLight, int packedOverlay, Material material) 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
-
NECK
- See Also:
-
FRONT
- See Also:
-
BACK
- See Also:
-
LEFT
- See Also:
-
RIGHT
- See Also:
-
TOP
- See Also:
-
BOTTOM
- See Also:
-
neck
-
frontSide
-
backSide
-
leftSide
-
rightSide
-
top
-
bottom
-
WOBBLE_AMPLITUDE
private static final float WOBBLE_AMPLITUDE- See Also:
-
-
Constructor Details
-
DecoratedPotRenderer
-
-
Method Details
-
createBaseLayer
-
createSidesLayer
-
getSideMaterial
-
render
public void render(DecoratedPotBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay) - Specified by:
renderin interfaceBlockEntityRenderer<DecoratedPotBlockEntity>
-
renderSide
private void renderSide(ModelPart modelPart, PoseStack poseStack, MultiBufferSource buffer, int packedLight, int packedOverlay, Material material) -
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<DecoratedPotBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-