Record Class HitboxVRMovementInfoImpl
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.client.immersive.HitboxVRMovementInfoImpl
- All Implemented Interfaces:
HitboxVRMovementInfo
public record HitboxVRMovementInfoImpl(net.minecraft.core.Direction.Axis relativeAxis, double[] thresholds, HitboxVRMovementInfoBuilder.ControllerMode controllerMode, BiConsumer<BuiltImmersiveInfo<?>, List<net.minecraft.world.InteractionHand>> actionConsumer)
extends Record
implements HitboxVRMovementInfo
-
Constructor Summary
ConstructorsConstructorDescriptionHitboxVRMovementInfoImpl(net.minecraft.core.Direction.Axis relativeAxis, double[] thresholds, HitboxVRMovementInfoBuilder.ControllerMode controllerMode, BiConsumer<BuiltImmersiveInfo<?>, List<net.minecraft.world.InteractionHand>> actionConsumer) Creates an instance of aHitboxVRMovementInfoImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionBiConsumer<BuiltImmersiveInfo<?>, List<net.minecraft.world.InteractionHand>> Returns the value of theactionConsumerrecord component.Returns the value of thecontrollerModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.Direction.AxisReturns the value of therelativeAxisrecord component.double[]Returns the value of thethresholdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HitboxVRMovementInfoImpl
public HitboxVRMovementInfoImpl(@Nullable net.minecraft.core.Direction.Axis relativeAxis, double[] thresholds, HitboxVRMovementInfoBuilder.ControllerMode controllerMode, BiConsumer<BuiltImmersiveInfo<?>, List<net.minecraft.world.InteractionHand>> actionConsumer) Creates an instance of aHitboxVRMovementInfoImplrecord class.- Parameters:
relativeAxis- the value for therelativeAxisrecord componentthresholds- the value for thethresholdsrecord componentcontrollerMode- the value for thecontrollerModerecord componentactionConsumer- the value for theactionConsumerrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
relativeAxis
@Nullable public net.minecraft.core.Direction.Axis relativeAxis()Returns the value of therelativeAxisrecord component.- Specified by:
relativeAxisin interfaceHitboxVRMovementInfo- Returns:
- the value of the
relativeAxisrecord component
-
thresholds
public double[] thresholds()Returns the value of thethresholdsrecord component.- Specified by:
thresholdsin interfaceHitboxVRMovementInfo- Returns:
- the value of the
thresholdsrecord component
-
controllerMode
Returns the value of thecontrollerModerecord component.- Specified by:
controllerModein interfaceHitboxVRMovementInfo- Returns:
- the value of the
controllerModerecord component
-
actionConsumer
public BiConsumer<BuiltImmersiveInfo<?>, List<net.minecraft.world.InteractionHand>> actionConsumer()Returns the value of theactionConsumerrecord component.- Specified by:
actionConsumerin interfaceHitboxVRMovementInfo- Returns:
- the value of the
actionConsumerrecord component
-