Class PathfinderRandomSwim
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderRandomStroll
me.gamercoder215.mobchip.ai.goal.PathfinderRandomSwim
- All Implemented Interfaces:
PathfinderInfo, Repeated, SpeedModifier
Represents a Pathfinder for a Mob to randomly swim
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Default Interval to swim, in ticksFields inherited from class Pathfinder
entityFields inherited from interface SpeedModifier
DEFAULT_SPEED_MODIFIER -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderRandomSwim(@NotNull Creature c) Constructs a PathfinderRandomSwim with theDEFAULT_INTERVAL.PathfinderRandomSwim(@NotNull Creature c, double speedMod) Constructs a PathfinderRandomSwim with theDEFAULT_INTERVALPathfinderRandomSwim(@NotNull Creature c, double speedMod, int interval) Constructs a PathfinderRandomSwim.PathfinderRandomSwim(@NotNull Creature c, int interval) Constructs a PathfinderRandomSwim with no speed modifier. -
Method Summary
Modifier and TypeMethodDescriptionReturns the pathfinder's internal name.Methods inherited from class PathfinderRandomStroll
getFlags, getInterval, getSpeedModifier, setInterval, setSpeedModifierMethods 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
-
Field Details
-
DEFAULT_INTERVAL
public static final int DEFAULT_INTERVALThe Default Interval to swim, in ticks- See Also:
-
-
Constructor Details
-
PathfinderRandomSwim
Constructs a PathfinderRandomSwim with theDEFAULT_INTERVAL.- Parameters:
c- Creature to use
-
PathfinderRandomSwim
Constructs a PathfinderRandomSwim with no speed modifier.- Parameters:
c- Creature to useinterval- Interval, in ticks, of how often to swim
-
PathfinderRandomSwim
Constructs a PathfinderRandomSwim with theDEFAULT_INTERVAL- Parameters:
c- Creature to usespeedMod- Speed Modifier while swimming
-
PathfinderRandomSwim
Constructs a PathfinderRandomSwim.- Parameters:
c- Creature to usespeedMod- Speed Modifier while swimminginterval- Interval, in ticks, of how often to swim
-
-
Method Details
-
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.- Specified by:
getInternalNamein interfacePathfinderInfo- Overrides:
getInternalNamein classPathfinderRandomStroll- Returns:
- Internal Name
-