java.lang.Object
com.hypixel.hytale.server.core.modules.physics.component.Velocity
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class Velocity extends Object implements Component<EntityStore>
  • Field Details

  • Constructor Details

    • Velocity

      public Velocity()
    • Velocity

      public Velocity(@Nonnull Velocity other)
    • Velocity

      public Velocity(@Nonnull Vector3d initialVelocity)
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore,Velocity> getComponentType()
    • setZero

      public void setZero()
    • addForce

      public void addForce(@Nonnull Vector3d force)
    • addForce

      public void addForce(double x, double y, double z)
    • set

      public void set(@Nonnull Vector3d newVelocity)
    • set

      public void set(double x, double y, double z)
    • setClient

      public void setClient(@Nonnull Vector3d newVelocity)
    • 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

      @Nonnull public List<Velocity.Instruction> getInstructions()
    • getVelocity

      @Nonnull public Vector3d getVelocity()
    • getClientVelocity

      @Nonnull public Vector3d getClientVelocity()
    • assignVelocityTo

      @Nonnull public Vector3d assignVelocityTo(@Nonnull Vector3d vector)
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Overrides:
      clone in class Object