Class BackUpIfTooClose<E extends Mob>

java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.BackUpIfTooClose<E>

public class BackUpIfTooClose<E extends Mob> extends Behavior<E>
  • Field Details

    • tooCloseDistance

      private final int tooCloseDistance
    • strafeSpeed

      private final float strafeSpeed
  • Constructor Details

    • BackUpIfTooClose

      public BackUpIfTooClose(int p_22492_, float p_22493_)
  • Method Details

    • checkExtraStartConditions

      protected boolean checkExtraStartConditions(ServerLevel p_22502_, E p_22503_)
      Overrides:
      checkExtraStartConditions in class Behavior<E extends Mob>
    • start

      protected void start(ServerLevel p_22505_, E p_22506_, long p_22507_)
      Overrides:
      start in class Behavior<E extends Mob>
    • isTargetVisible

      private boolean isTargetVisible(E p_22509_)
    • isTargetTooClose

      private boolean isTargetTooClose(E p_22511_)
    • getTarget

      private LivingEntity getTarget(E p_22513_)