Package me.gamercoder215.mobchip.ai.goal
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 me.gamercoder215.mobchip.ai.goal.Pathfinder
Pathfinder.PathfinderFlag
-
Field Summary
Fields inherited from class me.gamercoder215.mobchip.ai.goal.Pathfinder
entity
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PathfinderLeapAtTarget with a Y of 3.PathfinderLeapAtTarget
(@NotNull Mob m, float y) Constructs a PathfinderLeapAtTarget. -
Method Summary
Methods 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
-
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:Pathfinder
Fetches an Array of Flags that this Pathfinder has.
- Specified by:
getFlags
in 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:PathfinderInfo
Returns the NMS Internal Name.- Returns:
- Internal Name
-