Class PFPathingEntity
java.lang.Object
net.minestom.server.entity.pathfinding.PFPathingEntity
- All Implemented Interfaces:
com.extollit.gaming.ai.path.model.IDynamicMovableObject
,com.extollit.gaming.ai.path.model.IPathingEntity
public class PFPathingEntity
extends java.lang.Object
implements com.extollit.gaming.ai.path.model.IPathingEntity
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description PFPathingEntity(EntityCreature entity)
-
Method Summary
Modifier and Type Method Description int
age()
com.extollit.gaming.ai.path.model.IPathingEntity.Capabilities
capabilities()
com.extollit.linalg.immutable.Vec3d
coordinates()
Position
getTargetPosition()
float
height()
boolean
isAquaphobic()
boolean
isAvoidsDoorways()
boolean
isCautious()
boolean
isClimber()
boolean
isFireResistant()
boolean
isOpensDoors()
boolean
isSwimmer()
void
moveTo(com.extollit.linalg.immutable.Vec3d position, com.extollit.gaming.ai.path.model.Passibility passibility, com.extollit.gaming.ai.path.model.Gravitation gravitation)
float
searchRange()
void
setAquaphobic(boolean aquaphobic)
void
setAvoidsDoorways(boolean avoidsDoorways)
void
setCautious(boolean cautious)
void
setClimber(boolean climber)
void
setFireResistant(boolean fireResistant)
void
setOpensDoors(boolean opensDoors)
void
setSearchRange(float searchRange)
Changes the search range of the entityvoid
setSwimmer(boolean swimmer)
float
width()
-
Constructor Details
-
Method Details
-
getTargetPosition
-
age
public int age()- Specified by:
age
in interfacecom.extollit.gaming.ai.path.model.IPathingEntity
-
searchRange
public float searchRange()- Specified by:
searchRange
in interfacecom.extollit.gaming.ai.path.model.IPathingEntity
-
setSearchRange
public void setSearchRange(float searchRange)Changes the search range of the entity- Parameters:
searchRange
- the new entity's search range
-
isFireResistant
public boolean isFireResistant() -
setFireResistant
public void setFireResistant(boolean fireResistant) -
isCautious
public boolean isCautious() -
setCautious
public void setCautious(boolean cautious) -
isClimber
public boolean isClimber() -
setClimber
public void setClimber(boolean climber) -
isSwimmer
public boolean isSwimmer() -
setSwimmer
public void setSwimmer(boolean swimmer) -
isAquaphobic
public boolean isAquaphobic() -
setAquaphobic
public void setAquaphobic(boolean aquaphobic) -
isAvoidsDoorways
public boolean isAvoidsDoorways() -
setAvoidsDoorways
public void setAvoidsDoorways(boolean avoidsDoorways) -
isOpensDoors
public boolean isOpensDoors() -
setOpensDoors
public void setOpensDoors(boolean opensDoors) -
capabilities
public com.extollit.gaming.ai.path.model.IPathingEntity.Capabilities capabilities()- Specified by:
capabilities
in interfacecom.extollit.gaming.ai.path.model.IPathingEntity
-
moveTo
public void moveTo(com.extollit.linalg.immutable.Vec3d position, com.extollit.gaming.ai.path.model.Passibility passibility, com.extollit.gaming.ai.path.model.Gravitation gravitation)- Specified by:
moveTo
in interfacecom.extollit.gaming.ai.path.model.IPathingEntity
-
coordinates
public com.extollit.linalg.immutable.Vec3d coordinates()- Specified by:
coordinates
in interfacecom.extollit.gaming.ai.path.model.IDynamicMovableObject
-
width
public float width()- Specified by:
width
in interfacecom.extollit.gaming.ai.path.model.IDynamicMovableObject
-
height
public float height()- Specified by:
height
in interfacecom.extollit.gaming.ai.path.model.IDynamicMovableObject
-