Class PathfinderLeapAtTarget
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderLeapAtTarget
- All Implemented Interfaces:
PathfinderInfo
Represents a Pathfinder for a Mob to leap at its target
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entity -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderLeapAtTarget(@NotNull Mob m) Constructs a PathfinderLeapAtTarget with a Y of 3.PathfinderLeapAtTarget(@NotNull Mob m, float y) Constructs a PathfinderLeapAtTarget. -
Method Summary
Modifier and TypeMethodDescription@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.floatFetches the Y value height while leaping.Returns the pathfinder's internal name.voidsetHeight(float height) Sets the Y value height while leaping.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
-
PathfinderLeapAtTarget
Constructs a PathfinderLeapAtTarget with a Y of 3.- Parameters:
m- Mob to use
-
PathfinderLeapAtTarget
Constructs a PathfinderLeapAtTarget.- Parameters:
m- Mob to usey- Height to use while leaping
-
-
Method Details
-
getFlags
Description copied from class:PathfinderFetches an Array of Flags that this Pathfinder has.
- Specified by:
getFlagsin classPathfinder- Returns:
- Array of Pathfinder Flags
-
getHeight
public float getHeight()Fetches the Y value height while leaping.- Returns:
- Y value height
-
setHeight
public void setHeight(float height) Sets the Y value height while leaping.- Parameters:
height- New Y Value Height
-
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
-