Class DhApiRenderParam
java.lang.Object
com.seibel.distanthorizons.api.methods.events.sharedParameterObjects.DhApiRenderParam
- Direct Known Subclasses:
DhApiBeforeBufferRenderEvent.EventParam
Contains information relevant to Distant Horizons and Minecraft rendering.
- Since:
- API 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Mat4fThe model view matrix Distant Horizons is using to render this frame.final Mat4fThe projection matrix Distant Horizons is using to render this frame.final floatIndicates DH's far clip plane, measured in blocks.final Mat4fThe model view matrix Minecraft is using to render this frame.final Mat4fThe projection matrix Minecraft is using to render this frame.final floatIndicates DH's near clip plane, measured in blocks.final floatIndicates how far into this tick the frame is.final EDhApiRenderPassIndicates what render pass DH is currently renderingfinal int -
Constructor Summary
ConstructorsConstructorDescriptionDhApiRenderParam(EDhApiRenderPass renderPass, float newPartialTicks, float nearClipPlane, float farClipPlane, Mat4f newMcProjectionMatrix, Mat4f newMcModelViewMatrix, Mat4f newDhProjectionMatrix, Mat4f newDhModelViewMatrix, int worldYOffset) DhApiRenderParam(DhApiRenderParam parent) -
Method Summary
-
Field Details
-
renderPass
Indicates what render pass DH is currently rendering -
partialTicks
public final float partialTicksIndicates how far into this tick the frame is. -
nearClipPlane
public final float nearClipPlaneIndicates DH's near clip plane, measured in blocks. Note: this may change based on time, player speed, and other factors. -
farClipPlane
public final float farClipPlaneIndicates DH's far clip plane, measured in blocks. Note: this may change based on time, player speed, and other factors. -
mcProjectionMatrix
The projection matrix Minecraft is using to render this frame. -
mcModelViewMatrix
The model view matrix Minecraft is using to render this frame. -
dhProjectionMatrix
The projection matrix Distant Horizons is using to render this frame. -
dhModelViewMatrix
The model view matrix Distant Horizons is using to render this frame. -
worldYOffset
public final int worldYOffset
-
-
Constructor Details
-
DhApiRenderParam
public DhApiRenderParam(EDhApiRenderPass renderPass, float newPartialTicks, float nearClipPlane, float farClipPlane, Mat4f newMcProjectionMatrix, Mat4f newMcModelViewMatrix, Mat4f newDhProjectionMatrix, Mat4f newDhModelViewMatrix, int worldYOffset)