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 Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entity -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderResetAnger(@NotNull Mob m) Constructs a PathfinderResetAnger with alert others set to truePathfinderResetAnger(@NotNull Mob m, boolean alertOthers) Constructs a PathfinderResetAnger. -
Method Summary
Modifier and TypeMethodDescription@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Returns the pathfinder's internal name.booleanWhether the Mob will alert other entities of this type.voidsetAlertOthers(boolean alert) Sets whether the Mob will alert other entities of this type.Methods inherited from class Pathfinder
getEntityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:PathfinderFetches an Array of Flags that this Pathfinder has.
- Specified by:
getFlagsin 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:PathfinderInfoReturns the pathfinder's internal name. This may match the actual NMS name of the pathfinder, but it may not.- Returns:
- Internal Name
-