Class Velocity
java.lang.Object
com.hypixel.hytale.server.core.modules.physics.component.Velocity
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Vector3dstatic final BuilderCodec<Velocity> protected final List<Velocity.Instruction> protected final Vector3dFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForce(double x, double y, double z) voidvoidaddInstruction(Vector3d velocity, VelocityConfig config, ChangeVelocityType type) assignVelocityTo(Vector3d vector) clone()static ComponentType<EntityStore, Velocity> doublegetSpeed()doublegetX()doublegetY()doublegetZ()voidset(double x, double y, double z) voidvoidsetClient(double x, double y, double z) voidvoidsetX(double x) voidsetY(double y) voidsetZ(double z) voidsetZero()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
CODEC
-
instructions
-
velocity
-
clientVelocity
-
-
Constructor Details
-
Velocity
public Velocity() -
Velocity
-
Velocity
-
-
Method Details
-
getComponentType
-
setZero
public void setZero() -
addForce
-
addForce
public void addForce(double x, double y, double z) -
set
-
set
public void set(double x, double y, double z) -
setClient
-
setClient
public void setClient(double x, double y, double z) -
setX
public void setX(double x) -
setY
public void setY(double y) -
setZ
public void setZ(double z) -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getSpeed
public double getSpeed() -
addInstruction
public void addInstruction(@Nonnull Vector3d velocity, @Nullable VelocityConfig config, @Nonnull ChangeVelocityType type) -
getInstructions
-
getVelocity
-
getClientVelocity
-
assignVelocityTo
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-