MotionController

public interface MotionController

Class MotionController. Provides motioncontroller functionality for the Hytale server.

java.lang.Object > MotionController

Field Summary

movementStatesComponent

final MovementStatesComponent movementStatesComponent

Field movementStatesComponent.

velocityComponent

final Velocity velocityComponent

Field velocityComponent.

states

final MovementStates states

Field states.

current

public double current

Field current.

min

public double min

Field min.

max

public double max

Field max.

Method Detail

matchesType

public boolean matchesType (@Nonnull final Class clazz)

Method matchesType.

Parameters:
@Nonnull final Class clazz

clearOverrides

public void clearOverrides ()

Method clearOverrides.

getSquaredDistance

public double getSquaredDistance (@Nonnull final Vector3d p1, @Nonnull final Vector3d p2, final boolean useProjectedDistance)

Method getSquaredDistance.

Parameters:
@Nonnull final Vector3d p1
@Nonnull final Vector3d p2
final boolean useProjectedDistance

isInMovementState

public boolean isInMovementState (@Nonnull final Ref ref, @Nonnull final MovementState state, @Nonnull final ComponentAccessor componentAccessor)

Method isInMovementState.

Parameters:
@Nonnull final Ref ref
@Nonnull final MovementState state
@Nonnull final ComponentAccessor componentAccessor

switch

public return switch (state)

Method switch.

Parameters:
state state

assign

public void assign (final double current, final double min, final double max)

Method assign.

Parameters:
final double current
final double min
final double max

isWithinRange

public boolean isWithinRange ()

Method isWithinRange.