Class Cat.CatRelaxOnOwnerGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.animal.Cat.CatRelaxOnOwnerGoal
Enclosing class:
Cat

static class Cat.CatRelaxOnOwnerGoal extends Goal
  • Field Details

    • cat

      private final Cat cat
    • ownerPlayer

      private Player ownerPlayer
    • goalPos

      private BlockPos goalPos
    • onBedTicks

      private int onBedTicks
  • Constructor Details

    • CatRelaxOnOwnerGoal

      public CatRelaxOnOwnerGoal(Cat p_28203_)
  • Method Details

    • canUse

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

      private boolean spaceIsOccupied()
    • canContinueToUse

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

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

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

      private void giveMorningGift()
    • tick

      public void tick()
      Overrides:
      tick in class Goal