Package me.gamercoder215.mobchip.ai.goal
Class PathfinderOpenDoor
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderOpenDoor
- All Implemented Interfaces:
PathfinderInfo
Represents a Pathfinder for an entity to open a door
-
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 PathfinderOpenDoor that allows closing doors.PathfinderOpenDoor
(@NotNull Mob m, boolean close) Constructs a PathfinderOpenDoor. -
Method Summary
Modifier and TypeMethodDescriptiongetFlags()
Fetches an Array of Flags that this Pathfinder has.Returns the NMS Internal Name.boolean
Whether this entity should close the door.void
setMustClose
(boolean close) Sets whether this entity should close the door.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
-
PathfinderOpenDoor
Constructs a PathfinderOpenDoor that allows closing doors.- Parameters:
m
- Mob to use
-
PathfinderOpenDoor
Constructs a PathfinderOpenDoor.- Parameters:
m
- Mob to useclose
- Whether this entity should close the door
-
-
Method Details
-
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
-
mustClose
public boolean mustClose()Whether this entity should close the door.- Returns:
- true if close, else false
-
setMustClose
public void setMustClose(boolean close) Sets whether this entity should close the door.- Parameters:
close
- true if close, else false
-
getInternalName
Description copied from interface:PathfinderInfo
Returns the NMS Internal Name.- Returns:
- Internal Name
-