Class RaiderEntity.AttackHomeGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.raid.RaiderEntity.AttackHomeGoal
Enclosing class:
RaiderEntity

static class RaiderEntity.AttackHomeGoal
extends Goal
  • Field Details

    • raider

      private final RaiderEntity raider
    • speed

      private final double speed
    • home

      private BlockPos home
    • lastHomes

      private final List<BlockPos> lastHomes
    • distance

      private final int distance
    • finished

      private boolean finished
  • Constructor Details

    • AttackHomeGoal

      public AttackHomeGoal​(RaiderEntity raider, double speed, int distance)
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
    • isRaiding

      private boolean isRaiding()
    • tryFindHome

      private boolean tryFindHome()
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • start

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

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

      private boolean canLootHome​(BlockPos pos)
    • purgeMemory

      private void purgeMemory()