Class MoveThroughVillageAtNightGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveThroughVillageAtNightGoal
Direct Known Subclasses:
FoxEntity.StrollGoal

public class MoveThroughVillageAtNightGoal extends Goal
  • Field Details

    • mob

      private final CreatureEntity mob
    • interval

      private final int interval
    • wantedPos

      @Nullable private BlockPos wantedPos
  • Constructor Details

    • MoveThroughVillageAtNightGoal

      public MoveThroughVillageAtNightGoal(CreatureEntity p_i50321_1_, int p_i50321_2_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • moveRandomly

      private void moveRandomly()