Class PathfinderNearestAttackableTargetRaider<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.PathfinderNearestAttackableTargetRaider<T>
- Type Parameters:
T
- Type of Entity to Attack
- All Implemented Interfaces:
Conditional<LivingEntity>
,PathfinderInfo
,Repeated
,Filtering<T>
,Targeting
public final class PathfinderNearestAttackableTargetRaider<T extends LivingEntity>
extends PathfinderNearestAttackableTarget<T>
Represents a Pathfinder for a specific Raider's attack
-
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 PathfinderNearestAttackableTargetRaider.Constructs a PathfinderNearestAttackableTargetRaider.PathfinderNearestAttackableTargetRaider
(@NotNull Raider m, @NotNull Class<T> filter, int interval, boolean mustSee, boolean reach) Constructs a PathfinderNearestAttackableTargetRaider.PathfinderNearestAttackableTargetRaider
(@NotNull Raider m, @NotNull Class<T> filter, int interval, boolean mustSee, boolean reach, @Nullable Predicate<LivingEntity> conditions) Constructs a PathfinderNearestAttackableTargetRaider. -
Method Summary
Methods inherited from class me.gamercoder215.mobchip.ai.goal.target.PathfinderNearestAttackableTarget
getCondition, getFilter, getFlags, getInterval, setCondition, setFilter, setInterval
Methods inherited from class me.gamercoder215.mobchip.ai.goal.target.TargetPathfinder
mustReach, mustSee, setReach, setSee
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
-
PathfinderNearestAttackableTargetRaider
public PathfinderNearestAttackableTargetRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter) throws IllegalArgumentException Constructs a PathfinderNearestAttackableTargetRaider.- Parameters:
m
- Raider to usefilter
- Filter of class- Throws:
IllegalArgumentException
- if filter is null- See Also:
-
PathfinderNearestAttackableTargetRaider
public PathfinderNearestAttackableTargetRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter, int interval) throws IllegalArgumentException Constructs a PathfinderNearestAttackableTargetRaider.- Parameters:
m
- Raider to usefilter
- Filter of classinterval
- Interval of attack, in ticks- Throws:
IllegalArgumentException
- if filter is null- See Also:
-
PathfinderNearestAttackableTargetRaider
public PathfinderNearestAttackableTargetRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter, int interval, boolean mustSee, boolean reach) throws IllegalArgumentException Constructs a PathfinderNearestAttackableTargetRaider.- Parameters:
m
- Raider to usefilter
- Filter of classinterval
- Interval of attack, in ticksmustSee
- Whether the Raider must see the targetreach
- Whether the Raider must reach the target- Throws:
IllegalArgumentException
- if filter is null- See Also:
-
PathfinderNearestAttackableTargetRaider
public PathfinderNearestAttackableTargetRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter, int interval, boolean mustSee, boolean reach, @Nullable @Nullable Predicate<LivingEntity> conditions) throws IllegalArgumentException Constructs a PathfinderNearestAttackableTargetRaider.- Parameters:
m
- Raider to usefilter
- Filter of classinterval
- Interval of attack, in ticksmustSee
- Whether the Raider must see the targetreach
- Whether the Raider must reach the targetconditions
- Conditions needed to attack- Throws:
IllegalArgumentException
- if filter is null- See Also:
-
-
Method Details
-
getInternalName
Description copied from interface:PathfinderInfo
Returns the NMS Internal Name.- Specified by:
getInternalName
in interfacePathfinderInfo
- Overrides:
getInternalName
in classPathfinderNearestAttackableTarget<T extends LivingEntity>
- Returns:
- Internal Name
-