Class DhApiRenderParam
java.lang.Object
com.seibel.distanthorizons.api.methods.events.sharedParameterObjects.DhApiRenderParam
- All Implemented Interfaces:
IDhApiCopyable
,IDhApiEventParam
- Direct Known Subclasses:
DhApiBeforeBufferRenderEvent.EventParam
,DhApiBeforeGenericObjectRenderEvent.EventParam
Contains information relevant to Distant Horizons and Minecraft rendering.
- Since:
- API 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DhApiMat4f
The model view matrix Distant Horizons is using to render this frame.final DhApiMat4f
The projection matrix Distant Horizons is using to render this frame.final float
Indicates DH's far clip plane, measured in blocks.final DhApiMat4f
The model view matrix Minecraft is using to render this frame.final DhApiMat4f
The projection matrix Minecraft is using to render this frame.final float
Indicates DH's near clip plane, measured in blocks.final float
Indicates how far into this tick the frame is.final EDhApiRenderPass
Indicates what render pass DH is currently renderingfinal int
-
Constructor Summary
ConstructorsConstructorDescriptionDhApiRenderParam
(EDhApiRenderPass renderPass, float newPartialTicks, float nearClipPlane, float farClipPlane, DhApiMat4f newMcProjectionMatrix, DhApiMat4f newMcModelViewMatrix, DhApiMat4f newDhProjectionMatrix, DhApiMat4f newDhModelViewMatrix, int worldYOffset) DhApiRenderParam
(DhApiRenderParam parent) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a deep clone of all parameters whenever possible.
-
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, DhApiMat4f newMcProjectionMatrix, DhApiMat4f newMcModelViewMatrix, DhApiMat4f newDhProjectionMatrix, DhApiMat4f newDhModelViewMatrix, int worldYOffset)
-
Method Details
-
copy
Description copied from interface:IDhApiCopyable
Returns a deep clone of all parameters whenever possible.- Specified by:
copy
in interfaceIDhApiCopyable
-