Package me.gamercoder215.mobchip.ai.goal
Class PathfinderResetAnger
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderResetAnger
- All Implemented Interfaces:
PathfinderInfo
Represents a Pathfinder for a Neutral Mob to reset its Universal Anger
-
Nested Class Summary
Nested classes/interfaces inherited from class me.gamercoder215.mobchip.ai.goal.Pathfinder
Pathfinder.PathfinderFlag
-
Field Summary
Fields inherited from class me.gamercoder215.mobchip.ai.goal.Pathfinder
entity
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PathfinderResetAnger with alert others set to truePathfinderResetAnger
(@NotNull Mob m, boolean alertOthers) Constructs a PathfinderResetAnger. -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()
Fetches an Array of Flags that this Pathfinder has.Returns the NMS Internal Name.boolean
Whether the Mob will alert other entities of this type.void
setAlertOthers
(boolean alert) Sets whether the Mob will alert other entities of this type.Methods inherited from class me.gamercoder215.mobchip.ai.goal.Pathfinder
getEntity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.gamercoder215.mobchip.ai.goal.PathfinderInfo
getName
-
Constructor Details
-
PathfinderResetAnger
Constructs a PathfinderResetAnger with alert others set to true- Parameters:
m
- Mob to use
-
PathfinderResetAnger
Constructs a PathfinderResetAnger.- Parameters:
m
- Mob to usealertOthers
- Whether to alert other mobs of this type
-
-
Method Details
-
getFlags
Description copied from class:Pathfinder
Fetches an Array of Flags that this Pathfinder has.
- Specified by:
getFlags
in classPathfinder
- Returns:
- Array of Pathfinder Flags
-
isAlertingOthers
public boolean isAlertingOthers()Whether the Mob will alert other entities of this type.- Returns:
- true if alerting others, else false
-
setAlertOthers
public void setAlertOthers(boolean alert) Sets whether the Mob will alert other entities of this type.- Parameters:
alert
- true if alerting others, else false
-
getInternalName
Description copied from interface:PathfinderInfo
Returns the NMS Internal Name.- Returns:
- Internal Name
-