Class SteeringForceAvoidCollision

java.lang.Object
com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceWithGroup
com.hypixel.hytale.server.npc.movement.steeringforces.SteeringForceAvoidCollision

public class SteeringForceAvoidCollision extends SteeringForceWithGroup
  • Constructor Details

    • SteeringForceAvoidCollision

      public SteeringForceAvoidCollision()
  • Method Details

    • setDebug

      public void setDebug(boolean debug)
    • getAvoidanceMode

      public Role.AvoidanceMode getAvoidanceMode()
    • setAvoidanceMode

      public void setAvoidanceMode(Role.AvoidanceMode avoidanceMode)
    • setSelf

      public void setSelf(@Nonnull Ref<EntityStore> ref, @Nonnull org.joml.Vector3d position, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
      Overrides:
      setSelf in class SteeringForceWithGroup
    • setSelf

      public void setSelf(@Nonnull Ref<EntityStore> ref, @Nonnull org.joml.Vector3d position, @Nullable org.joml.Vector3d velocity, double radius, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • reset

      public void reset()
      Specified by:
      reset in class SteeringForceWithGroup
    • compute

      public boolean compute(@Nonnull Steering output)
      Overrides:
      compute in class SteeringForceWithGroup
    • add

      public void add(@Nonnull Ref<EntityStore> ref, @Nonnull CommandBuffer<EntityStore> commandBuffer)
      Specified by:
      add in class SteeringForceWithGroup
    • setVelocityFromEntity

      public void setVelocityFromEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • setRadiusFromEntity

      public void setRadiusFromEntity(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor)
    • setMaxDistance

      public void setMaxDistance(double distance)
    • setFalloff

      public void setFalloff(double falloff)
    • setSelfVelocity

      public void setSelfVelocity(@Nonnull org.joml.Vector3d selfVelocity)
    • getSelfVelocity

      @Nonnull public org.joml.Vector3d getSelfVelocity()
    • getSelfRadius

      public double getSelfRadius()
    • setSelfRadius

      public void setSelfRadius(double selfRadius)
    • getStrength

      public double getStrength()
    • setStrength

      public void setStrength(double strength)
    • getLastSteeringDirection

      @Nonnull public org.joml.Vector3d getLastSteeringDirection()