类 Ghast.RandomFloatAroundGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.monster.Ghast.RandomFloatAroundGoal
封闭类:
Ghast

public static class Ghast.RandomFloatAroundGoal extends Goal
  • 字段详细资料

    • MAX_ATTEMPTS

      private static final int MAX_ATTEMPTS
      另请参阅:
    • ghast

      private final Mob ghast
    • distanceToBlocks

      private final int distanceToBlocks
  • 构造器详细资料

    • RandomFloatAroundGoal

      public RandomFloatAroundGoal(Mob p_416337_)
    • RandomFloatAroundGoal

      public RandomFloatAroundGoal(Mob p_415816_, int p_416473_)
  • 方法详细资料

    • canUse

      public boolean canUse()
      指定者:
      canUse 在类中 Goal
    • canContinueToUse

      public boolean canContinueToUse()
      覆盖:
      canContinueToUse 在类中 Goal
    • start

      public void start()
      覆盖:
      start 在类中 Goal
    • getSuitableFlyToPosition

      public static Vec3 getSuitableFlyToPosition(Mob p_415820_, int p_415837_)
    • isGoodTarget

      private static boolean isGoodTarget(Level p_415688_, Vec3 p_416409_, int p_415738_)
    • chooseRandomPosition

      private static Vec3 chooseRandomPosition(Vec3 p_416643_, RandomSource p_416184_)
    • chooseRandomPositionWithRestriction

      @Nullable private static Vec3 chooseRandomPositionWithRestriction(Mob p_415643_, Vec3 p_415583_, RandomSource p_416214_)