Class PathfinderInteract<T extends LivingEntity>
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderLookAtEntity<T>
me.gamercoder215.mobchip.ai.goal.PathfinderInteract<T>
- Type Parameters:
T- Type of LivingEntity to look at
- All Implemented Interfaces:
PathfinderInfo, Ranged, Filtering<T>, Probable
Represents a pathfinder used by Wandering Traders to look at the player. Closely related to
PathfinderLookAtEntity-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class PathfinderLookAtEntity
DEFAULT_PROBABILITYFields inherited from class Pathfinder
entityFields inherited from interface Ranged
DEFAULT_ATTACK_INTERVAL, DEFAULT_ATTACK_RANGE, DEFAULT_LOOK_RANGE -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderInteract(@NotNull Mob entity, Class<T> filter, float lookRange) Constructs a PathfinderInteractPathfinderInteract(@NotNull Mob entity, Class<T> filter, float lookRange, float probability) Constructs a PathfinderInteract -
Method Summary
Modifier and TypeMethodDescription@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Returns the pathfinder's internal name.Methods inherited from class PathfinderLookAtEntity
getFilter, getProbability, getRange, isHorizontal, setFilter, setHorizontal, setProbability, setRangeMethods 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
-
PathfinderInteract
public PathfinderInteract(@NotNull @NotNull Mob entity, Class<T> filter, float lookRange, float probability) Constructs a PathfinderInteract- Parameters:
entity- Mob to usefilter- Filter class to look atlookRange- Range of blocks to find selected class filterprobability- Probability (0.0 - 1.0) to look at something. Called every tick, recommended to be a low number. SeePathfinderLookAtEntity.DEFAULT_PROBABILITY.
-
PathfinderInteract
-
-
Method Details
-
getFlags
Description copied from class:PathfinderFetches an Array of Flags that this Pathfinder has.
- Overrides:
getFlagsin classPathfinderLookAtEntity<T extends LivingEntity>- 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.- Specified by:
getInternalNamein interfacePathfinderInfo- Overrides:
getInternalNamein classPathfinderLookAtEntity<T extends LivingEntity>- Returns:
- Internal Name
-