Package me.gamercoder215.mobchip.ai.goal
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 me.gamercoder215.mobchip.ai.goal.Pathfinder
Pathfinder.PathfinderFlag
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The Default Interval to swim, in ticksFields inherited from class me.gamercoder215.mobchip.ai.goal.Pathfinder
entity
Fields inherited from interface me.gamercoder215.mobchip.ai.SpeedModifier
DEFAULT_SPEED_MODIFIER
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PathfinderRandomSwim with theDEFAULT_INTERVAL
.PathfinderRandomSwim
(@NotNull Creature c, double speedMod) Constructs a PathfinderRandomSwim with theDEFAULT_INTERVAL
PathfinderRandomSwim
(@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
Methods inherited from class me.gamercoder215.mobchip.ai.goal.PathfinderRandomStroll
getFlags, getInterval, getSpeedModifier, setInterval, setSpeedModifier
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
-
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:PathfinderInfo
Returns the NMS Internal Name.- Specified by:
getInternalName
in interfacePathfinderInfo
- Overrides:
getInternalName
in classPathfinderRandomStroll
- Returns:
- Internal Name
-