Class WorldRenderContext

java.lang.Object
com.render.api.world.WorldRenderContext

public final class WorldRenderContext extends Object
Extraction-only command context. It snapshots camera/time values and never exposes draw state. Instances are valid only for the current END_EXTRACTION callback.
  • Method Details

    • level

      public net.minecraft.client.multiplayer.ClientLevel level()
    • cameraPosition

      public net.minecraft.world.phys.Vec3 cameraPosition()
    • cameraRotation

      public org.joml.Quaternionf cameraRotation()
    • cameraForward

      public net.minecraft.world.phys.Vec3 cameraForward()
    • partialTick

      public float partialTick()
    • gameSeconds

      public double gameSeconds()
    • realSeconds

      public double realSeconds()
    • compatibility

      public WorldRenderCompatibilityReport compatibility()
    • supports

      public boolean supports(WorldRenderCapability capability)
    • pixelsToWorld

      public float pixelsToWorld(net.minecraft.world.phys.Vec3 position, float pixels)
    • mesh

      public void mesh(WorldMesh mesh, WorldTransform transform, WorldMaterial material)
    • mesh

      public void mesh(WorldMesh mesh, WorldTransform transform, WorldMaterial material, WorldEffectStack effects)
    • text

      public void text(net.minecraft.network.chat.Component text, WorldTransform transform, WorldMaterial material, float scale, boolean background)
    • text

      public void text(String text, net.minecraft.world.phys.Vec3 position, WorldMaterial material, float scale)
    • line

      public void line(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, WorldStroke stroke, WorldMaterial material)
    • polyline

      public void polyline(List<net.minecraft.world.phys.Vec3> points, WorldStroke stroke, boolean closed, WorldMaterial material)
    • arrow

      public void arrow(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, WorldStroke stroke, WorldMaterial material)
    • sphere

      public void sphere(net.minecraft.world.phys.Vec3 center, double radius, WorldMaterial material)
    • box

      public void box(net.minecraft.world.phys.AABB bounds, WorldMaterial material)
    • circle

      public void circle(net.minecraft.world.phys.Vec3 center, double radius, WorldMaterial material)
    • plane

      public void plane(net.minecraft.world.phys.Vec3 center, double width, double height, WorldMaterial material)
    • cylinder

      public void cylinder(net.minecraft.world.phys.Vec3 center, double radius, double height, WorldMaterial material)
    • cone

      public void cone(net.minecraft.world.phys.Vec3 center, double radius, double height, WorldMaterial material)
    • image

      public void image(net.minecraft.resources.Identifier texture, net.minecraft.world.phys.Vec3 center, float width, float height, WorldMaterial material)
    • model

      public void model(WorldModel model, WorldTransform transform, WorldMaterial material)
    • model

      public void model(WorldModelRef reference, WorldTransform transform, WorldMaterial material)
    • decal

      public void decal(net.minecraft.resources.Identifier texture, WorldTransform transform, float width, float height, float depth, WorldMaterial material)