Class Steering

java.lang.Object
com.hypixel.hytale.server.npc.movement.Steering

public class Steering extends Object
  • Field Details

    • NULL

      public static final Steering NULL
    • translation

      private final Vector3d translation
    • maxDistance

      private double maxDistance
    • maxDistanceComponentSelector

      private Vector3d maxDistanceComponentSelector
    • hasTranslation

      private boolean hasTranslation
    • yaw

      private float yaw
    • hasYaw

      private boolean hasYaw
    • pitch

      private float pitch
    • hasPitch

      private boolean hasPitch
    • roll

      private float roll
    • hasRoll

      private boolean hasRoll
    • relativeTurnSpeed

      private double relativeTurnSpeed
    • hasRelativeTurnSpeed

      private boolean hasRelativeTurnSpeed
  • Constructor Details

    • Steering

      public Steering()
  • Method Details

    • clear

      @Nonnull public Steering clear()
    • assign

      @Nonnull public Steering assign(@Nonnull Steering other)
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clearTranslation

      @Nonnull public Steering clearTranslation()
    • clearRotation

      @Nonnull public Steering clearRotation()
    • getTranslation

      @Nonnull public Vector3d getTranslation()
    • getX

      public double getX()
    • setX

      @Nonnull public Steering setX(double value)
    • getY

      public double getY()
    • setY

      @Nonnull public Steering setY(double value)
    • getZ

      public double getZ()
    • setZ

      @Nonnull public Steering setZ(double value)
    • setTranslation

      @Nonnull public Steering setTranslation(@Nonnull Vector3d translation)
    • setTranslation

      @Nonnull public Steering setTranslation(double x, double y, double z)
    • setTranslationRelativeSpeed

      @Nonnull public Steering setTranslationRelativeSpeed(double relativeSpeed)
    • scaleTranslation

      @Nonnull public Steering scaleTranslation(double speedFactor)
    • ensureMinTranslation

      @Nonnull public Steering ensureMinTranslation(double relativeSpeed)
    • getMaxDistance

      public double getMaxDistance()
    • setMaxDistance

      public void setMaxDistance(double maxDistance)
    • clearMaxDistance

      public void clearMaxDistance()
    • getMaxDistanceComponentSelector

      public Vector3d getMaxDistanceComponentSelector()
    • setMaxDistanceComponentSelector

      public void setMaxDistanceComponentSelector(Vector3d maxDistanceComponentSelector)
    • clearMaxDistanceComponentSelector

      public void clearMaxDistanceComponentSelector()
    • getYaw

      public float getYaw()
    • setYaw

      @Nonnull public Steering setYaw(float angle)
    • clearYaw

      public void clearYaw()
    • getPitch

      public float getPitch()
    • setPitch

      @Nonnull public Steering setPitch(float angle)
    • clearPitch

      public void clearPitch()
    • getRoll

      public float getRoll()
    • setRoll

      @Nonnull public Steering setRoll(float angle)
    • clearRoll

      public void clearRoll()
    • setRelativeTurnSpeed

      @Nonnull public Steering setRelativeTurnSpeed(double relativeTurnSpeed)
    • hasTranslation

      public boolean hasTranslation()
    • hasYaw

      public boolean hasYaw()
    • hasPitch

      public boolean hasPitch()
    • hasRoll

      public boolean hasRoll()
    • getSpeed

      public double getSpeed()
    • getRelativeTurnSpeed

      public double getRelativeTurnSpeed()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object