Class DisplayPartOverlayRenderer
java.lang.Object
org.cyclops.integrateddynamics.client.render.part.PartOverlayRendererBase
org.cyclops.integrateddynamics.client.render.part.DisplayPartOverlayRenderer
- All Implemented Interfaces:
IPartOverlayRenderer
Overlay renderer for the display part to display values on the part.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawError(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float distanceAlpha) voidrenderPartOverlay(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, IPartContainer partContainer, net.minecraft.core.Direction direction, IPartType partType, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay) Render the overlay.protected voidsetMatrixOrientation(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.core.Direction direction) Sets the OpenGL matrix orientation for the given direction.Methods inherited from class org.cyclops.integrateddynamics.client.render.part.PartOverlayRendererBase
getMaxRenderDistance, shouldRender
-
Field Details
-
MAX
public static final float MAX- See Also:
-
pixel
protected static final float pixel- See Also:
-
-
Constructor Details
-
DisplayPartOverlayRenderer
public DisplayPartOverlayRenderer()
-
-
Method Details
-
setMatrixOrientation
protected void setMatrixOrientation(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.core.Direction direction) Description copied from class:PartOverlayRendererBaseSets the OpenGL matrix orientation for the given direction.- Overrides:
setMatrixOrientationin classPartOverlayRendererBase- Parameters:
matrixStack- The matrix stack.direction- The direction to orient the OpenGL matrix to.
-
renderPartOverlay
public void renderPartOverlay(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, IPartContainer partContainer, net.minecraft.core.Direction direction, IPartType partType, float partialTicks, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay) Description copied from interface:IPartOverlayRendererRender the overlay.- Parameters:
context- The render contextpartContainer- The part container for this partdirection- The direction this part is facingpartType- The part type that is being overlayedpartialTicks- The partial tickmatrixStack- The matrix render stack.renderTypeBuffer- The render type buffer.combinedLight- The combined light value.combinedOverlay- The combined overlay value.
-
drawError
protected void drawError(net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context context, com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource renderTypeBuffer, int combinedLight, int combinedOverlay, float distanceAlpha)
-