Package me.gamercoder215.mobchip.ai.goal
Class PathfinderRestrictSun
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderRestrictSun
- All Implemented Interfaces:
PathfinderInfo
Represents a Pathfinder for a Creature to avoid the Sun.
This Pathfinder is a more basic version of PathfinderFleeSun
. There is no speed modifier included, and it will only avoid the sun. The other pathfinder will include if the Creature is on fire and if they do not have a helmet, and will also pathfind the entity to the nearest extinguish source.
-
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 PathfinderRestrictSun. -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()
Fetches an Array of Flags that this Pathfinder has.Returns the NMS Internal Name.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
-
PathfinderRestrictSun
Constructs a PathfinderRestrictSun.- Parameters:
c
- Creature to use
-
-
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
-
getInternalName
Description copied from interface:PathfinderInfo
Returns the NMS Internal Name.- Returns:
- Internal Name
-