Class FlatRandomRoamExecutor

java.lang.Object
cn.nukkit.entity.ai.executor.FlatRandomRoamExecutor
All Implemented Interfaces:
EntityControl, IBehaviorExecutor

@PowerNukkitXOnly @Since("1.6.0.0-PNX") public class FlatRandomRoamExecutor extends Object implements EntityControl, IBehaviorExecutor
  • Field Details

    • speed

      protected float speed
    • maxRoamRange

      protected int maxRoamRange
    • frequency

      protected int frequency
    • currentTargetCalTick

      protected int currentTargetCalTick
    • durationTick

      protected int durationTick
    • calNextTargetImmediately

      protected boolean calNextTargetImmediately
    • runningTime

      protected int runningTime
    • avoidWater

      protected boolean avoidWater
    • maxRetryTime

      protected int maxRetryTime
  • Constructor Details

    • FlatRandomRoamExecutor

      public FlatRandomRoamExecutor(float speed, int maxRoamRange, int frequency)
    • FlatRandomRoamExecutor

      public FlatRandomRoamExecutor(float speed, int maxRoamRange, int frequency, boolean calNextTargetImmediately, int runningTime)
    • FlatRandomRoamExecutor

      public FlatRandomRoamExecutor(float speed, int maxRoamRange, int frequency, boolean calNextTargetImmediately, int runningTime, boolean avoidWater, int maxRetryTime)
  • Method Details