Class PathfinderSpearUse
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderSpearUse
- All Implemented Interfaces:
PathfinderInfo
Pathfinder for using a spear
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entity -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderSpearUse(@NotNull Mob entity, double speedModifierWhenCharging, double speedModifierWhenRepositioning, float approachDistance, float targetInRangeRadius) Constructs a Pathfinder. -
Method Summary
Modifier and TypeMethodDescriptionfloat@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Returns the pathfinder's internal name.doubledoublefloatvoidsetApproachDistance(float approachDistance) voidsetSpeedModifierWhenCharging(double speedModifierWhenCharging) voidsetSpeedModifierWhenRepositioning(double speedModifierWhenRepositioning) voidsetTargetInRangeRadius(float targetInRangeRadius) 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
-
PathfinderSpearUse
public PathfinderSpearUse(@NotNull @NotNull Mob entity, double speedModifierWhenCharging, double speedModifierWhenRepositioning, float approachDistance, float targetInRangeRadius) Constructs a Pathfinder.- Parameters:
entity- Entity to use
-
-
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
-
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
-
getSpeedModifierWhenCharging
public double getSpeedModifierWhenCharging() -
setSpeedModifierWhenCharging
public void setSpeedModifierWhenCharging(double speedModifierWhenCharging) -
getSpeedModifierWhenRepositioning
public double getSpeedModifierWhenRepositioning() -
setSpeedModifierWhenRepositioning
public void setSpeedModifierWhenRepositioning(double speedModifierWhenRepositioning) -
getApproachDistance
public float getApproachDistance() -
setApproachDistance
public void setApproachDistance(float approachDistance) -
getTargetInRangeRadius
public float getTargetInRangeRadius() -
setTargetInRangeRadius
public void setTargetInRangeRadius(float targetInRangeRadius)
-