Class InteractDoorGoal

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

public abstract class InteractDoorGoal extends Goal
  • Field Details

    • mob

      protected MobEntity mob
    • doorPos

      protected BlockPos doorPos
    • hasDoor

      protected boolean hasDoor
    • passed

      private boolean passed
    • doorOpenDirX

      private float doorOpenDirX
    • doorOpenDirZ

      private float doorOpenDirZ
  • Constructor Details

    • InteractDoorGoal

      public InteractDoorGoal(MobEntity p_i1621_1_)
  • Method Details

    • isOpen

      protected boolean isOpen()
    • setOpen

      protected void setOpen(boolean p_195921_1_)
    • 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