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

    Constructors
    Constructor
    Description
    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 a RenderContextImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.renderer.RenderBuffers
    Returns the value of the buffers record component.
    net.minecraft.client.Camera
    Returns the value of the camera record component.
    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)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    net.minecraft.client.multiplayer.ClientLevel
    Returns the value of the level record component.
    float
    Returns the value of the partialTick record component.
    org.joml.Matrix4fc
    Returns the value of the projection record component.
    net.minecraft.client.renderer.LevelRenderer
    Returns the value of the renderer record component.
    com.mojang.blaze3d.vertex.PoseStack
    Returns the value of the stack record component.
    final String
    Returns a string representation of this record class.
    org.joml.Matrix4fc
    Returns the value of the viewProjection record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a RenderContextImpl record class.
      Parameters:
      renderer - the value for the renderer record component
      level - the value for the level record component
      buffers - the value for the buffers record component
      stack - the value for the stack record component
      projection - the value for the projection record component
      viewProjection - the value for the viewProjection record component
      camera - the value for the camera record component
      partialTick - the value for the partialTick record 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • renderer

      public net.minecraft.client.renderer.LevelRenderer renderer()
      Returns the value of the renderer record component.
      Specified by:
      renderer in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the renderer record component
    • level

      public net.minecraft.client.multiplayer.ClientLevel level()
      Returns the value of the level record component.
      Specified by:
      level in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the level record component
    • buffers

      public net.minecraft.client.renderer.RenderBuffers buffers()
      Returns the value of the buffers record component.
      Specified by:
      buffers in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the buffers record component
    • stack

      public com.mojang.blaze3d.vertex.PoseStack stack()
      Returns the value of the stack record component.
      Specified by:
      stack in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the stack record component
    • projection

      public org.joml.Matrix4fc projection()
      Returns the value of the projection record component.
      Specified by:
      projection in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the projection record component
    • viewProjection

      public org.joml.Matrix4fc viewProjection()
      Returns the value of the viewProjection record component.
      Specified by:
      viewProjection in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the viewProjection record component
    • camera

      public net.minecraft.client.Camera camera()
      Returns the value of the camera record component.
      Specified by:
      camera in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the camera record component
    • partialTick

      public float partialTick()
      Returns the value of the partialTick record component.
      Specified by:
      partialTick in interface dev.engine_room.flywheel.api.backend.RenderContext
      Returns:
      the value of the partialTick record component