Class DoorInteractGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.DoorInteractGoal
Direct Known Subclasses:
BreakDoorGoal, OpenDoorGoal

public abstract class DoorInteractGoal extends Goal
  • Field Details

    • mob

      protected Mob mob
    • doorPos

      protected BlockPos doorPos
    • hasDoor

      protected boolean hasDoor
    • passed

      private boolean passed
    • doorOpenDirX

      private float doorOpenDirX
    • doorOpenDirZ

      private float doorOpenDirZ
  • Constructor Details

    • DoorInteractGoal

      public DoorInteractGoal(Mob p_25193_)
  • Method Details

    • isOpen

      protected boolean isOpen()
    • setOpen

      protected void setOpen(boolean p_25196_)
    • canUse

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

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

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

      public void tick()
      Overrides:
      tick in class Goal