Package com.pixelmonmod.pixelmon.ai
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
void
pickDirection
(boolean useLastChangeDirection) void
void
void
stop()
void
tick()
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, start, toString
-
Field Details
-
pixelmon
-
-
Constructor Details
-
FlyingPersistentGoal
Initializes the flying AI.- Parameters:
entity
- The Pokémon to initialize flying AI for.
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUse
in classnet.minecraft.world.entity.ai.goal.Goal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classnet.minecraft.world.entity.ai.goal.Goal
-
stop
public void stop()- Overrides:
stop
in classnet.minecraft.world.entity.ai.goal.Goal
-
tick
public void tick()- Overrides:
tick
in classnet.minecraft.world.entity.ai.goal.Goal
-
pickDirection
public void pickDirection(boolean useLastChangeDirection) -
pickSpeed
public void pickSpeed() -
pickHeight
public void pickHeight()
-