WorldRenderContext

public interface WorldRenderContext

Except as noted below, the properties exposed here match the parameters passed to render.

Types

BlockOutlineContext
Link copied to clipboard
public interface BlockOutlineContext
Used in {@code BLOCK_OUTLINE} to convey the parameters normally sent to {@code WorldRenderer.drawBlockOutline}.

Functions

advancedTranslucency
Link copied to clipboard
abstract boolean advancedTranslucency()
Test to know if "fabulous" graphics mode is enabled.
blockOutlines
Link copied to clipboard
abstract boolean blockOutlines()
camera
Link copied to clipboard
abstract Camera camera()
consumers
Link copied to clipboard
@Nullable()
abstract VertexConsumerProvider consumers()
The {@code VertexConsumerProvider} instance being used by the world renderer for most non-terrain renders.Generally this will be better for most use cases because quads for the same layer can be bufferedincrementally and then drawn all at once by the world renderer.
frustum
Link copied to clipboard
@Nullable()
abstract Frustum frustum()
View frustum, after it is initialized.
gameRenderer
Link copied to clipboard
abstract GameRenderer gameRenderer()
lightmapTextureManager
Link copied to clipboard
abstract LightmapTextureManager lightmapTextureManager()
limitTime
Link copied to clipboard
abstract long limitTime()
matrixStack
Link copied to clipboard
abstract MatrixStack matrixStack()
profiler
Link copied to clipboard
abstract Profiler profiler()
Convenient access to game performance profiler.
projectionMatrix
Link copied to clipboard
abstract Matrix4f projectionMatrix()
tickDelta
Link copied to clipboard
abstract float tickDelta()
world
Link copied to clipboard
abstract ClientWorld world()
Convenient access to {WorldRenderer.world}.
worldRenderer
Link copied to clipboard
abstract WorldRenderer worldRenderer()
The world renderer instance doing the rendering and invoking the event.

Inheritors

WorldRenderContextImpl
Link copied to clipboard

Sources

jvm source
Link copied to clipboard