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 extends MotionController> clazz)
Method matchesType.
- Parameters:
@Nonnull final Class extends MotionController>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 Vector3dp1@Nonnull final Vector3dp2final booleanuseProjectedDistance
isInMovementState
public
boolean
isInMovementState
(@Nonnull final Ref ref, @Nonnull final MovementState state, @Nonnull final ComponentAccessor componentAccessor)
Method isInMovementState.
- Parameters:
@Nonnull final Refref@Nonnull final MovementStatestate@Nonnull final ComponentAccessorcomponentAccessor
switch
public
return
switch
(state)
Method switch.
- Parameters:
statestate
assign
public
void
assign
(final double current, final double min, final double max)
Method assign.
- Parameters:
final doublecurrentfinal doubleminfinal doublemax
isWithinRange
public
boolean
isWithinRange
()
Method isWithinRange.