Class PathfinderRandomStrollThroughVillage
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderRandomStrollThroughVillage
- All Implemented Interfaces:
PathfinderInfo
Represents a Pathfinder for a Creature to randomly stroll through a village
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entity -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderRandomStrollThroughVillage(@NotNull Creature c) Constructs a PathfinderRandomStrollThroughVillage with a default interval of 100 ticks.PathfinderRandomStrollThroughVillage(@NotNull Creature c, int interval) Constructs a PathfinderRandomStrollThroughVillage. -
Method Summary
Modifier and TypeMethodDescription@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Returns the pathfinder's internal name.intGets the current interval of this PathfinderRandomStrollThroughVillage.voidsetInterval(int interval) Sets the current interval of this PathfinderRandomStrollThroughVillage.Methods 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
-
PathfinderRandomStrollThroughVillage
Constructs a PathfinderRandomStrollThroughVillage with a default interval of 100 ticks.- Parameters:
c- Creature to use
-
PathfinderRandomStrollThroughVillage
Constructs a PathfinderRandomStrollThroughVillage.- Parameters:
c- Creature to useinterval- Interval, in ticks, to stroll
-
-
Method Details
-
getInterval
public int getInterval()Gets the current interval of this PathfinderRandomStrollThroughVillage.- Returns:
- Interval to stroll, in ticks
-
setInterval
public void setInterval(int interval) Sets the current interval of this PathfinderRandomStrollThroughVillage.- Parameters:
interval- interval to stroll, in ticks
-
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.- Returns:
- Internal Name
-