Class WorldRenderContext
java.lang.Object
com.render.api.world.WorldRenderContext
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 Summary
Modifier and TypeMethodDescriptionvoidarrow(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, WorldStroke stroke, WorldMaterial material) voidbox(net.minecraft.world.phys.AABB bounds, WorldMaterial material) net.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3org.joml.Quaternionfvoidcircle(net.minecraft.world.phys.Vec3 center, double radius, WorldMaterial material) voidcone(net.minecraft.world.phys.Vec3 center, double radius, double height, WorldMaterial material) voidcylinder(net.minecraft.world.phys.Vec3 center, double radius, double height, WorldMaterial material) voiddecal(net.minecraft.resources.Identifier texture, WorldTransform transform, float width, float height, float depth, WorldMaterial material) doublevoidimage(net.minecraft.resources.Identifier texture, net.minecraft.world.phys.Vec3 center, float width, float height, WorldMaterial material) net.minecraft.client.multiplayer.ClientLevellevel()voidline(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, WorldStroke stroke, WorldMaterial material) voidmesh(WorldMesh mesh, WorldTransform transform, WorldMaterial material) voidmesh(WorldMesh mesh, WorldTransform transform, WorldMaterial material, WorldEffectStack effects) voidmodel(WorldModel model, WorldTransform transform, WorldMaterial material) voidmodel(WorldModelRef reference, WorldTransform transform, WorldMaterial material) floatfloatpixelsToWorld(net.minecraft.world.phys.Vec3 position, float pixels) voidplane(net.minecraft.world.phys.Vec3 center, double width, double height, WorldMaterial material) voidpolyline(List<net.minecraft.world.phys.Vec3> points, WorldStroke stroke, boolean closed, WorldMaterial material) doublevoidsphere(net.minecraft.world.phys.Vec3 center, double radius, WorldMaterial material) booleansupports(WorldRenderCapability capability) voidtext(String text, net.minecraft.world.phys.Vec3 position, WorldMaterial material, float scale) voidtext(net.minecraft.network.chat.Component text, WorldTransform transform, WorldMaterial material, float scale, boolean background)
-
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
-
supports
-
pixelsToWorld
public float pixelsToWorld(net.minecraft.world.phys.Vec3 position, float pixels) -
mesh
-
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
-
box
-
circle
-
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
-
model
-
decal
public void decal(net.minecraft.resources.Identifier texture, WorldTransform transform, float width, float height, float depth, WorldMaterial material)
-