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

    Nested classes/interfaces inherited from interface com.extollit.gaming.ai.path.model.IPathingEntity

    com.extollit.gaming.ai.path.model.IPathingEntity.Capabilities
  • 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 entity
    void setSwimmer​(boolean swimmer)  
    float width()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getTargetPosition

      public Position getTargetPosition()
    • age

      public int age()
      Specified by:
      age in interface com.extollit.gaming.ai.path.model.IPathingEntity
    • searchRange

      public float searchRange()
      Specified by:
      searchRange in interface com.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 interface com.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 interface com.extollit.gaming.ai.path.model.IPathingEntity
    • coordinates

      public com.extollit.linalg.immutable.Vec3d coordinates()
      Specified by:
      coordinates in interface com.extollit.gaming.ai.path.model.IDynamicMovableObject
    • width

      public float width()
      Specified by:
      width in interface com.extollit.gaming.ai.path.model.IDynamicMovableObject
    • height

      public float height()
      Specified by:
      height in interface com.extollit.gaming.ai.path.model.IDynamicMovableObject