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.
setX
public
void
setX
(final double x)
Method setX.
- Parameters:
final doublex
setY
public
void
setY
(final double y)
Method setY.
- Parameters:
final doubley
setZ
public
void
setZ
(final double z)
Method setZ.
- Parameters:
final doublez
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
public
void
addInstruction
(@Nonnull final Vector3d velocity, @Nullable final VelocityConfig config, @Nonnull final ChangeVelocityType type)
Method addInstruction.
- Parameters:
@Nonnull final Vector3dvelocity@Nullable final VelocityConfigconfig@Nonnull final ChangeVelocityTypetype
Instruction
public
new
Instruction
(velocity, config, type)
Method Instruction.
- Parameters:
velocityvelocityconfigconfigtypetype
getInstructions
public
List
getInstructions
()
Method getInstructions.