Record Class RenderContextImpl
java.lang.Object
java.lang.Record
dev.engine_room.flywheel.impl.event.RenderContextImpl
- All Implemented Interfaces:
dev.engine_room.flywheel.api.backend.RenderContext
public record RenderContextImpl(net.minecraft.client.renderer.LevelRenderer renderer, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.renderer.RenderBuffers buffers, com.mojang.blaze3d.vertex.PoseStack stack, org.joml.Matrix4fc projection, org.joml.Matrix4fc viewProjection, net.minecraft.client.Camera camera, float partialTick)
extends Record
implements dev.engine_room.flywheel.api.backend.RenderContext
-
Constructor Summary
ConstructorsConstructorDescriptionRenderContextImpl(net.minecraft.client.renderer.LevelRenderer renderer, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.renderer.RenderBuffers buffers, com.mojang.blaze3d.vertex.PoseStack stack, org.joml.Matrix4fc projection, org.joml.Matrix4fc viewProjection, net.minecraft.client.Camera camera, float partialTick) Creates an instance of aRenderContextImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.RenderBuffersbuffers()Returns the value of thebuffersrecord component.net.minecraft.client.Cameracamera()Returns the value of thecamerarecord component.static RenderContextImplcreate(net.minecraft.client.renderer.LevelRenderer renderer, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.renderer.RenderBuffers buffers, com.mojang.blaze3d.vertex.PoseStack stack, org.joml.Matrix4f projection, net.minecraft.client.Camera camera, float partialTick) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.multiplayer.ClientLevellevel()Returns the value of thelevelrecord component.floatReturns the value of thepartialTickrecord component.org.joml.Matrix4fcReturns the value of theprojectionrecord component.net.minecraft.client.renderer.LevelRendererrenderer()Returns the value of therendererrecord component.com.mojang.blaze3d.vertex.PoseStackstack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.org.joml.Matrix4fcReturns the value of theviewProjectionrecord component.
-
Constructor Details
-
RenderContextImpl
public RenderContextImpl(net.minecraft.client.renderer.LevelRenderer renderer, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.renderer.RenderBuffers buffers, com.mojang.blaze3d.vertex.PoseStack stack, org.joml.Matrix4fc projection, org.joml.Matrix4fc viewProjection, net.minecraft.client.Camera camera, float partialTick) Creates an instance of aRenderContextImplrecord class.- Parameters:
renderer- the value for therendererrecord componentlevel- the value for thelevelrecord componentbuffers- the value for thebuffersrecord componentstack- the value for thestackrecord componentprojection- the value for theprojectionrecord componentviewProjection- the value for theviewProjectionrecord componentcamera- the value for thecamerarecord componentpartialTick- the value for thepartialTickrecord component
-
-
Method Details
-
create
public static RenderContextImpl create(net.minecraft.client.renderer.LevelRenderer renderer, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.client.renderer.RenderBuffers buffers, com.mojang.blaze3d.vertex.PoseStack stack, org.joml.Matrix4f projection, net.minecraft.client.Camera camera, float partialTick) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
renderer
public net.minecraft.client.renderer.LevelRenderer renderer()Returns the value of therendererrecord component.- Specified by:
rendererin interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
rendererrecord component
-
level
public net.minecraft.client.multiplayer.ClientLevel level()Returns the value of thelevelrecord component.- Specified by:
levelin interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
levelrecord component
-
buffers
public net.minecraft.client.renderer.RenderBuffers buffers()Returns the value of thebuffersrecord component.- Specified by:
buffersin interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
buffersrecord component
-
stack
public com.mojang.blaze3d.vertex.PoseStack stack()Returns the value of thestackrecord component.- Specified by:
stackin interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
stackrecord component
-
projection
public org.joml.Matrix4fc projection()Returns the value of theprojectionrecord component.- Specified by:
projectionin interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
projectionrecord component
-
viewProjection
public org.joml.Matrix4fc viewProjection()Returns the value of theviewProjectionrecord component.- Specified by:
viewProjectionin interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
viewProjectionrecord component
-
camera
public net.minecraft.client.Camera camera()Returns the value of thecamerarecord component.- Specified by:
camerain interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
camerarecord component
-
partialTick
public float partialTick()Returns the value of thepartialTickrecord component.- Specified by:
partialTickin interfacedev.engine_room.flywheel.api.backend.RenderContext- Returns:
- the value of the
partialTickrecord component
-