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
ConstructorsConstructorDescriptionDynamicVisualContextImpl(net.minecraft.client.Camera camera, org.joml.FrustumIntersection frustum, float partialTick, dev.engine_room.flywheel.api.visual.DistanceUpdateLimiter limiter) Creates an instance of aDynamicVisualContextImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.Cameracamera()Returns the value of thecamerarecord component.final booleanIndicates whether some other object is "equal to" this one.org.joml.FrustumIntersectionfrustum()Returns the value of thefrustumrecord component.final inthashCode()Returns a hash code value for this object.dev.engine_room.flywheel.api.visual.DistanceUpdateLimiterlimiter()Returns the value of thelimiterrecord component.floatReturns the value of thepartialTickrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aDynamicVisualContextImplrecord class.- Parameters:
camera- the value for thecamerarecord componentfrustum- the value for thefrustumrecord componentpartialTick- the value for thepartialTickrecord componentlimiter- the value for thelimiterrecord component
-
-
Method Details
-
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 '=='. -
camera
public net.minecraft.client.Camera camera()Returns the value of thecamerarecord component.- Specified by:
camerain interfacedev.engine_room.flywheel.api.visual.DynamicVisual.Context- Returns:
- the value of the
camerarecord component
-
frustum
public org.joml.FrustumIntersection frustum()Returns the value of thefrustumrecord component.- Specified by:
frustumin interfacedev.engine_room.flywheel.api.visual.DynamicVisual.Context- Returns:
- the value of the
frustumrecord component
-
partialTick
public float partialTick()Returns the value of thepartialTickrecord component.- Specified by:
partialTickin interfacedev.engine_room.flywheel.api.visual.DynamicVisual.Context- Returns:
- the value of the
partialTickrecord component
-
limiter
public dev.engine_room.flywheel.api.visual.DistanceUpdateLimiter limiter()Returns the value of thelimiterrecord component.- Specified by:
limiterin interfacedev.engine_room.flywheel.api.visual.DynamicVisual.Context- Returns:
- the value of the
limiterrecord component
-