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 String
private final ModelPart
private final ModelPart
private static final String
private static final String
private final ModelPart
private static final String
private final ModelPart
private final ModelPart
private static final String
private static final String
private final ModelPart
private final ModelPart
private static final String
private static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinition
static LayerDefinition
void
getExtents
(Set<org.joml.Vector3f> pOutput) getRenderBoundingBox
(DecoratedPotBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.private static Material
getSideMaterial
(Optional<Item> pItem) private void
render
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, PotDecorations pDecorations) void
render
(DecoratedPotBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) void
renderInHand
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, PotDecorations pDecorations) private void
renderSide
(ModelPart pModelPart, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, int pPackedOverlay, Material pMaterial) 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
-
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
-
DecoratedPotRenderer
-
-
Method Details
-
createBaseLayer
-
createSidesLayer
-
getSideMaterial
-
render
public void render(DecoratedPotBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) - Specified by:
render
in interfaceBlockEntityRenderer<DecoratedPotBlockEntity>
-
renderInHand
public void renderInHand(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, PotDecorations pDecorations) -
render
private void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, PotDecorations pDecorations) -
renderSide
private void renderSide(ModelPart pModelPart, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, int pPackedOverlay, Material pMaterial) -
getExtents
-
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<DecoratedPotBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-