Class PathfinderBreed
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderBreed
- All Implemented Interfaces:
PathfinderInfo, SpeedModifier
Represents a Pathfinder that causes Animals to breed
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entityFields inherited from interface SpeedModifier
DEFAULT_SPEED_MODIFIER -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderBreed(@NotNull Animals m) Constructs a PathfinderBreed with no speed modifier.PathfinderBreed(@NotNull Animals m, double speedMod) Constructs a PathfinderBreed. -
Method Summary
Modifier and TypeMethodDescription@NotNull AnimalsGet the entity involved in this Pathfinder.@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Returns the pathfinder's internal name.doubleGet the Speed Modifier of this Pathfinder.voidsetSpeedModifier(double mod) Sets the Speed Modifier of this Pathfinder.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PathfinderInfo
getName
-
Constructor Details
-
PathfinderBreed
Constructs a PathfinderBreed with no speed modifier.- Parameters:
m- Animal to use
-
PathfinderBreed
Constructs a PathfinderBreed.- Parameters:
m- Animal to usespeedMod- Speed Modifier while breeding
-
-
Method Details
-
getEntity
Description copied from class:PathfinderGet the entity involved in this Pathfinder.- Overrides:
getEntityin classPathfinder- Returns:
- Creature involved
-
getSpeedModifier
public double getSpeedModifier()Description copied from interface:SpeedModifierGet the Speed Modifier of this Pathfinder.- Specified by:
getSpeedModifierin interfaceSpeedModifier- Returns:
- Speed Modifier
-
setSpeedModifier
public void setSpeedModifier(double mod) Description copied from interface:SpeedModifierSets the Speed Modifier of this Pathfinder.- Specified by:
setSpeedModifierin interfaceSpeedModifier- Parameters:
mod- Modifier to set
-
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
-