Record Class DynamicVisualContextImpl

java.lang.Object
java.lang.Record
dev.engine_room.flywheel.impl.visual.DynamicVisualContextImpl
All Implemented Interfaces:
dev.engine_room.flywheel.api.visual.DynamicVisual.Context

public record DynamicVisualContextImpl(net.minecraft.client.Camera camera, org.joml.FrustumIntersection frustum, float partialTick, dev.engine_room.flywheel.api.visual.DistanceUpdateLimiter limiter) extends Record implements dev.engine_room.flywheel.api.visual.DynamicVisual.Context
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamicVisualContextImpl(net.minecraft.client.Camera camera, org.joml.FrustumIntersection frustum, float partialTick, dev.engine_room.flywheel.api.visual.DistanceUpdateLimiter limiter)
    Creates an instance of a DynamicVisualContextImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.Camera
    Returns the value of the camera record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.joml.FrustumIntersection
    Returns the value of the frustum record component.
    final int
    Returns a hash code value for this object.
    dev.engine_room.flywheel.api.visual.DistanceUpdateLimiter
    Returns the value of the limiter record component.
    float
    Returns the value of the partialTick record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DynamicVisualContextImpl

      public DynamicVisualContextImpl(net.minecraft.client.Camera camera, org.joml.FrustumIntersection frustum, float partialTick, dev.engine_room.flywheel.api.visual.DistanceUpdateLimiter limiter)
      Creates an instance of a DynamicVisualContextImpl record class.
      Parameters:
      camera - the value for the camera record component
      frustum - the value for the frustum record component
      partialTick - the value for the partialTick record component
      limiter - the value for the limiter record component
  • Method Details

    • 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.
    • 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.visual.DynamicVisual.Context
      Returns:
      the value of the camera record component
    • frustum

      public org.joml.FrustumIntersection frustum()
      Returns the value of the frustum record component.
      Specified by:
      frustum in interface dev.engine_room.flywheel.api.visual.DynamicVisual.Context
      Returns:
      the value of the frustum record component
    • partialTick

      public float partialTick()
      Returns the value of the partialTick record component.
      Specified by:
      partialTick in interface dev.engine_room.flywheel.api.visual.DynamicVisual.Context
      Returns:
      the value of the partialTick record component
    • limiter

      public dev.engine_room.flywheel.api.visual.DistanceUpdateLimiter limiter()
      Returns the value of the limiter record component.
      Specified by:
      limiter in interface dev.engine_room.flywheel.api.visual.DynamicVisual.Context
      Returns:
      the value of the limiter record component