Class PathfinderWildTarget<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.PathfinderWildTarget<T>
- Type Parameters:
T
- Type of Target to look for
- All Implemented Interfaces:
Conditional<LivingEntity>
,PathfinderInfo
,Repeated
,Filtering<T>
,Targeting
public final class PathfinderWildTarget<T extends LivingEntity>
extends PathfinderNearestAttackableTarget<T>
Represents a Pathfinder when a Wild Animal
Mob but not tamed
targets another Entity.-
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 PathfinderWildTarget with see set to true.Constructs a PathfinderWildTarget with no conditions.PathfinderWildTarget
(@NotNull Tameable mob, @NotNull Class<T> filter, boolean see, @Nullable Predicate<LivingEntity> conditions) Constructs a PathfinderWildTarget. -
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
-
PathfinderWildTarget
public PathfinderWildTarget(@NotNull @NotNull Tameable mob, @NotNull @NotNull Class<T> filter) throws IllegalArgumentException Constructs a PathfinderWildTarget with see set to true.- Parameters:
mob
- Tameable Mob to usefilter
- Class of entity to find- Throws:
IllegalArgumentException
- if filter is null
-
PathfinderWildTarget
public PathfinderWildTarget(@NotNull @NotNull Tameable mob, @NotNull @NotNull Class<T> filter, boolean see) throws IllegalArgumentException Constructs a PathfinderWildTarget with no conditions.- Parameters:
mob
- Tameable Mob to usefilter
- Class of entity to findsee
- Whether entity must see target- Throws:
IllegalArgumentException
- if filter is null
-
PathfinderWildTarget
public PathfinderWildTarget(@NotNull @NotNull Tameable mob, @NotNull @NotNull Class<T> filter, boolean see, @Nullable @Nullable Predicate<LivingEntity> conditions) throws IllegalArgumentException Constructs a PathfinderWildTarget.- Parameters:
mob
- Tameable Mob to usefilter
- Class of entity to findsee
- Whether entity must see targetconditions
- Conditions that the target must match- Throws:
IllegalArgumentException
- if filter is null
-
-
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
-