Class DecoratedPotRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.DecoratedPotRenderer
- All Implemented Interfaces:
BlockEntityRenderer<DecoratedPotBlockEntity, DecoratedPotRenderState>, IBlockEntityRendererExtension<DecoratedPotBlockEntity>
public class DecoratedPotRenderer
extends Object
implements BlockEntityRenderer<DecoratedPotBlockEntity, DecoratedPotRenderState>
-
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 SpriteGetterprivate final ModelPartprivate static final Stringprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinitionstatic LayerDefinitionvoidextractRenderState(DecoratedPotBlockEntity blockEntity, DecoratedPotRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) voidgetExtents(Consumer<Vector3fc> output) getRenderBoundingBox(DecoratedPotBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.private static SpriteIdgetSideSprite(Optional<Item> item) voidsubmit(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, int lightCoords, int overlayCoords, PotDecorations decorations, int outlineColor) voidsubmit(DecoratedPotRenderState state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
sprites
-
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
-
DecoratedPotRenderer
-
-
Method Details
-
createBaseLayer
-
createSidesLayer
-
getSideSprite
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<DecoratedPotBlockEntity, DecoratedPotRenderState>
-
extractRenderState
public void extractRenderState(DecoratedPotBlockEntity blockEntity, DecoratedPotRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<DecoratedPotBlockEntity, DecoratedPotRenderState>
-
submit
public void submit(DecoratedPotRenderState state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera) - Specified by:
submitin interfaceBlockEntityRenderer<DecoratedPotBlockEntity, DecoratedPotRenderState>
-
submit
public void submit(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, int lightCoords, int overlayCoords, PotDecorations decorations, int outlineColor) -
getExtents
-
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
-