java.lang.Object
com.seibel.distanthorizons.api.methods.events.sharedParameterObjects.DhApiRenderParam
All Implemented Interfaces:
IDhApiCopyable, IDhApiEventParam
Direct Known Subclasses:
DhApiBeforeBufferRenderEvent.EventParam, DhApiBeforeGenericObjectRenderEvent.EventParam

public class DhApiRenderParam extends Object implements IDhApiEventParam
Contains information relevant to Distant Horizons and Minecraft rendering.
Since:
API 1.0.0
  • Field Details

    • renderPass

      public final EDhApiRenderPass renderPass
      Indicates what render pass DH is currently rendering
    • partialTicks

      public final float partialTicks
      Indicates how far into this tick the frame is.
    • nearClipPlane

      public final float nearClipPlane
      Indicates DH's near clip plane, measured in blocks. Note: this may change based on time, player speed, and other factors.
    • farClipPlane

      public final float farClipPlane
      Indicates DH's far clip plane, measured in blocks. Note: this may change based on time, player speed, and other factors.
    • mcProjectionMatrix

      public final DhApiMat4f mcProjectionMatrix
      The projection matrix Minecraft is using to render this frame.
    • mcModelViewMatrix

      public final DhApiMat4f mcModelViewMatrix
      The model view matrix Minecraft is using to render this frame.
    • dhProjectionMatrix

      public final DhApiMat4f dhProjectionMatrix
      The projection matrix Distant Horizons is using to render this frame.
    • dhModelViewMatrix

      public final DhApiMat4f dhModelViewMatrix
      The model view matrix Distant Horizons is using to render this frame.
    • worldYOffset

      public final int worldYOffset
  • Constructor Details

    • DhApiRenderParam

      public DhApiRenderParam(DhApiRenderParam parent)
    • DhApiRenderParam

      public DhApiRenderParam(EDhApiRenderPass renderPass, float newPartialTicks, float nearClipPlane, float farClipPlane, DhApiMat4f newMcProjectionMatrix, DhApiMat4f newMcModelViewMatrix, DhApiMat4f newDhProjectionMatrix, DhApiMat4f newDhModelViewMatrix, int worldYOffset)
  • Method Details