Class FlyingPersistentGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
com.pixelmonmod.pixelmon.ai.FlyingPersistentGoal
Direct Known Subclasses:
BattleHoverGoal

public class FlyingPersistentGoal extends net.minecraft.world.entity.ai.goal.Goal
AI for flying Pokémon.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal

    net.minecraft.world.entity.ai.goal.Goal.Flag
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected PixelmonEntity
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes the flying AI.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    void
    pickDirection(boolean useLastChangeDirection)
     
    void
     
    void
     
    void
     
    void
     

    Methods inherited from class net.minecraft.world.entity.ai.goal.Goal

    adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, start, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • FlyingPersistentGoal

      public FlyingPersistentGoal(PixelmonEntity entity)
      Initializes the flying AI.
      Parameters:
      entity - The Pokémon to initialize flying AI for.
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class net.minecraft.world.entity.ai.goal.Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class net.minecraft.world.entity.ai.goal.Goal
    • stop

      public void stop()
      Overrides:
      stop in class net.minecraft.world.entity.ai.goal.Goal
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal
    • pickDirection

      public void pickDirection(boolean useLastChangeDirection)
    • pickSpeed

      public void pickSpeed()
    • pickHeight

      public void pickHeight()