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 me.gamercoder215.mobchip.ai.goal.Pathfinder
Pathfinder.PathfinderFlag
-
Field Summary
Fields inherited from class me.gamercoder215.mobchip.ai.goal.Pathfinder
entity
-
Constructor Summary
ConstructorsConstructorDescriptionPathfinderHurtByTarget
(@NotNull Creature c, EntityType... ignore) Constructs a PathfinderHurtByTarget. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an EntityType to the List of EntityTypes to ignore when hurt.getFlags()
Fetches an Array of Flags that this Pathfinder has.Gets the current list of EntityTypes to ignore when hurt.Returns the NMS Internal Name.void
Removes an EntityType from the List of EntityTypes to ignore when hurt.void
setIgnoring
(@NotNull EntityType... ignoring) Sets the current list of EntityTypes to ignore when hurt.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
-
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:Pathfinder
Fetches an Array of Flags that this Pathfinder has.
- Specified by:
getFlags
in classPathfinder
- Returns:
- Array of Pathfinder Flags
-
getInternalName
Description copied from interface:PathfinderInfo
Returns the NMS Internal Name.- Returns:
- Internal Name
-