Class PathfinderNearestHealableRaider<T extends LivingEntity>
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.target.TargetPathfinder
me.gamercoder215.mobchip.ai.goal.target.PathfinderNearestAttackableTarget<T>
me.gamercoder215.mobchip.ai.goal.target.PathfinderNearestHealableRaider<T>
- All Implemented Interfaces:
Conditional<LivingEntity>, PathfinderInfo, Repeated, Filtering<T>, Targeting
public final class PathfinderNearestHealableRaider<T extends LivingEntity>
extends PathfinderNearestAttackableTarget<T>
Represents a Pathfinder for Raiders to heal another Raider
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entity -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderNearestHealableRaider(@NotNull Raider m, @NotNull Class<T> filter) Constructs a PathfinderNearestHealableRaider with see set to true.PathfinderNearestHealableRaider(@NotNull Raider m, @NotNull Class<T> filter, boolean mustSee) Constructs a PathfinderNearestHealableRaider with no conditions.PathfinderNearestHealableRaider(@NotNull Raider m, @NotNull Class<T> filter, boolean mustSee, @Nullable Predicate<LivingEntity> conditions) Constructs a PathfinderNearestHealableRaider. -
Method Summary
Modifier and TypeMethodDescriptionReturns the pathfinder's internal name.Methods inherited from class PathfinderNearestAttackableTarget
getCondition, getFilter, getFlags, getInterval, setCondition, setFilter, setIntervalMethods inherited from class TargetPathfinder
mustReach, mustSee, setReach, setSeeMethods 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
-
PathfinderNearestHealableRaider
public PathfinderNearestHealableRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter) throws IllegalArgumentException Constructs a PathfinderNearestHealableRaider with see set to true.- Parameters:
m- Raider to usefilter- Class of Entity to find- Throws:
IllegalArgumentException- if filter is null
-
PathfinderNearestHealableRaider
public PathfinderNearestHealableRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter, boolean mustSee) throws IllegalArgumentException Constructs a PathfinderNearestHealableRaider with no conditions.- Parameters:
m- Raider to usefilter- Class of Entity to findmustSee- Whether the Raider must see the target- Throws:
IllegalArgumentException- if filter is null
-
PathfinderNearestHealableRaider
public PathfinderNearestHealableRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter, boolean mustSee, @Nullable @Nullable Predicate<LivingEntity> conditions) throws IllegalArgumentException Constructs a PathfinderNearestHealableRaider.- Parameters:
m- Raider to usefilter- Class of Entity to findmustSee- Whether the Raider must see the targetconditions- Conditions needed to heal- Throws:
IllegalArgumentException- if filter is null
-
-
Method Details
-
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- Overrides:
getInternalNamein classPathfinderNearestAttackableTarget<T extends LivingEntity>- Returns:
- Internal Name
-