java.lang.Object
net.minestom.server.entity.pathfinding.PFBlock
All Implemented Interfaces:
com.extollit.gaming.ai.path.model.IBlockDescription, com.extollit.gaming.ai.path.model.IBlockObject

@Internal public final class PFBlock extends Object implements com.extollit.gaming.ai.path.model.IBlockDescription, com.extollit.gaming.ai.path.model.IBlockObject
  • Method Details

    • get

      @NotNull public static @NotNull PFBlock get(@NotNull @NotNull Block block)
      Gets the PFBlock linked to the block state id.

      Cache the result if it is not already.

      Parameters:
      block - the block
      Returns:
      the PFBlock linked to blockStateId
    • bounds

      public com.extollit.linalg.immutable.AxisAlignedBBox bounds()
      Specified by:
      bounds in interface com.extollit.gaming.ai.path.model.IBlockObject
    • isFenceLike

      public boolean isFenceLike()
      Specified by:
      isFenceLike in interface com.extollit.gaming.ai.path.model.IBlockDescription
    • isClimbable

      public boolean isClimbable()
      Specified by:
      isClimbable in interface com.extollit.gaming.ai.path.model.IBlockDescription
    • isDoor

      public boolean isDoor()
      Specified by:
      isDoor in interface com.extollit.gaming.ai.path.model.IBlockDescription
    • isIntractable

      public boolean isIntractable()
      Specified by:
      isIntractable in interface com.extollit.gaming.ai.path.model.IBlockDescription
    • isImpeding

      public boolean isImpeding()
      Specified by:
      isImpeding in interface com.extollit.gaming.ai.path.model.IBlockDescription
    • isFullyBounded

      public boolean isFullyBounded()
      Specified by:
      isFullyBounded in interface com.extollit.gaming.ai.path.model.IBlockDescription
    • isLiquid

      public boolean isLiquid()
      Specified by:
      isLiquid in interface com.extollit.gaming.ai.path.model.IBlockDescription
    • isIncinerating

      public boolean isIncinerating()
      Specified by:
      isIncinerating in interface com.extollit.gaming.ai.path.model.IBlockDescription