Velocity

public class Velocity implements Component

Class Velocity. Provides velocity functionality for the Hytale server.

java.lang.Object > Velocity

Field Summary

No fields documented.

Method Detail

getComponentType

public Velocity> getComponentType ()

Method getComponentType.

Velocity

public public Velocity ()

Method Velocity.

setZero

public void setZero ()

Method setZero.

addForce

public void addForce (@Nonnull final Vector3d force)

Method addForce.

Parameters:
@Nonnull final Vector3d force

set

public void set (@Nonnull final Vector3d newVelocity)

Method set.

Parameters:
@Nonnull final Vector3d newVelocity

setClient

public void setClient (@Nonnull final Vector3d newVelocity)

Method setClient.

Parameters:
@Nonnull final Vector3d newVelocity

setX

public void setX (final double x)

Method setX.

Parameters:
final double x

setY

public void setY (final double y)

Method setY.

Parameters:
final double y

setZ

public void setZ (final double z)

Method setZ.

Parameters:
final double z

getX

public double getX ()

Method getX.

getY

public double getY ()

Method getY.

getZ

public double getZ ()

Method getZ.

getSpeed

public double getSpeed ()

Method getSpeed.

addInstruction

Method addInstruction.

Parameters:
@Nonnull final Vector3d velocity
@Nullable final VelocityConfig config
@Nonnull final ChangeVelocityType type

Instruction

public new Instruction (velocity, config, type)

Method Instruction.

Parameters:
velocity velocity
config config
type type

getInstructions

public List getInstructions ()

Method getInstructions.

getVelocity

public Vector3d getVelocity ()

Method getVelocity.

getClientVelocity

public Vector3d getClientVelocity ()

Method getClientVelocity.

assignVelocityTo

public Vector3d assignVelocityTo (@Nonnull final Vector3d vector)

Method assignVelocityTo.

Parameters:
@Nonnull final Vector3d vector

clone

public Component clone ()

Method clone.

getConfig

public VelocityConfig getConfig ()

Method getConfig.

getType

public ChangeVelocityType getType ()

Method getType.