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 Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entity -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderDolphinJump(@NotNull Dolphin d, int interval) Constructs a PathfinderDolphinJump. -
Method Summary
Modifier and TypeMethodDescription@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Returns the pathfinder's internal name.intGet the current interval of jump timevoidsetInterval(int interval) Sets the repeating interval, in ticksMethods 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
-
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:
getIntervalin interfaceRepeated- Returns:
- current interval of jump time
-
setInterval
Description copied from interface:RepeatedSets the repeating interval, in ticks- Specified by:
setIntervalin interfaceRepeated- Parameters:
interval- Interval- Throws:
IllegalArgumentException- if interval is less than 0
-
getFlags
Description copied from class:PathfinderFetches an Array of Flags that this Pathfinder has.
- Specified by:
getFlagsin classPathfinder- Returns:
- Array of Pathfinder Flags
-
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- Returns:
- Internal Name
-