Class FleeGoal<T extends org.bukkit.entity.Mob>
java.lang.Object
io.github.addoncommunity.galactifun.api.aliens.behaviors.AlienBehavior<T>
io.github.addoncommunity.galactifun.api.aliens.behaviors.FleeGoal<T>
- All Implemented Interfaces:
com.destroystokyo.paper.entity.ai.Goal<T>, org.bukkit.event.Listener
public final class FleeGoal<T extends org.bukkit.entity.Mob>
extends AlienBehavior<T>
implements org.bukkit.event.Listener
Flees if attacked in the last
fleeTicks ticks-
Field Summary
Fields inherited from class AlienBehavior
mob -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AlienBehavior
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.destroystokyo.paper.entity.ai.Goal
start
-
Constructor Details
-
FleeGoal
-
-
Method Details
-
onHit
public void onHit(org.bukkit.event.entity.EntityDamageEvent e) -
shouldActivate
public boolean shouldActivate()- Specified by:
shouldActivatein interfacecom.destroystokyo.paper.entity.ai.Goal<T extends org.bukkit.entity.Mob>
-
shouldStayActive
public boolean shouldStayActive()- Specified by:
shouldStayActivein interfacecom.destroystokyo.paper.entity.ai.Goal<T extends org.bukkit.entity.Mob>
-
stop
public void stop()- Specified by:
stopin interfacecom.destroystokyo.paper.entity.ai.Goal<T extends org.bukkit.entity.Mob>
-
tick
public void tick()- Specified by:
tickin interfacecom.destroystokyo.paper.entity.ai.Goal<T extends org.bukkit.entity.Mob>
-
getTypes
- Specified by:
getTypesin interfacecom.destroystokyo.paper.entity.ai.Goal<T extends org.bukkit.entity.Mob>- Specified by:
getTypesin classAlienBehavior<T extends org.bukkit.entity.Mob>
-