Class PathfinderHurtByTarget
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.target.TargetPathfinder
me.gamercoder215.mobchip.ai.goal.target.PathfinderHurtByTarget
- All Implemented Interfaces:
PathfinderInfo, Targeting
Represents a Pathfinder for any Creature to retaliate if they are damaged
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entity -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderHurtByTarget(@NotNull Creature c, EntityType... ignore) Constructs a PathfinderHurtByTarget. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIgnore(@NotNull EntityType t) Adds an EntityType to the List of EntityTypes to ignore when hurt.@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.@NotNull List<EntityType> Gets the current list of EntityTypes to ignore when hurt.Returns the pathfinder's internal name.voidremoveIgnore(@NotNull EntityType t) Removes an EntityType from the List of EntityTypes to ignore when hurt.voidsetIgnoring(@NotNull EntityType... ignoring) Sets the current list of EntityTypes to ignore when hurt.Methods 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
-
PathfinderHurtByTarget
Constructs a PathfinderHurtByTarget.- Parameters:
c- Creature to useignore- EntityTypes to ignore when hurt
-
-
Method Details
-
getIgnoring
Gets the current list of EntityTypes to ignore when hurt.- Returns:
- List of Entity Types to ignore when hurt.
-
setIgnoring
Sets the current list of EntityTypes to ignore when hurt.- Parameters:
ignoring- Array of EntityTypes to ignore when hurt.
-
addIgnore
Adds an EntityType to the List of EntityTypes to ignore when hurt.- Parameters:
t- EntityType to add
-
removeIgnore
Removes an EntityType from the List of EntityTypes to ignore when hurt.- Parameters:
t- EntityType to remove
-
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
-