Package me.gamercoder215.mobchip.ai.goal
Class PathfinderDolphinJump
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderDolphinJump
- All Implemented Interfaces:
PathfinderInfo
,Repeated
Represents a Pathfinder that makes Dolphins Jump
-
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
ConstructorsConstructorDescriptionPathfinderDolphinJump
(@NotNull Dolphin d, int interval) Constructs a PathfinderDolphinJump. -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()
Fetches an Array of Flags that this Pathfinder has.Returns the NMS Internal Name.int
Get the current interval of jump timevoid
setInterval
(int interval) Sets the repeating interval, in ticksMethods 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
-
PathfinderDolphinJump
public PathfinderDolphinJump(@NotNull @NotNull Dolphin d, int interval) throws IllegalArgumentException Constructs a PathfinderDolphinJump.- Parameters:
d
- Dolphin to useinterval
- Interval to use- Throws:
IllegalArgumentException
- if less than 0
-
-
Method Details
-
getInterval
public int getInterval()Get the current interval of jump time- Specified by:
getInterval
in interfaceRepeated
- Returns:
- current interval of jump time
-
setInterval
Description copied from interface:Repeated
Sets the repeating interval, in ticks- Specified by:
setInterval
in interfaceRepeated
- Parameters:
interval
- Interval- Throws:
IllegalArgumentException
- if interval is less than 0
-
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.- Specified by:
getInternalName
in interfacePathfinderInfo
- Returns:
- Internal Name
-