Class MinecraftBlockExaminer

java.lang.Object
net.citizensnpcs.api.astar.pathfinder.MinecraftBlockExaminer
All Implemented Interfaces:
BlockExaminer

public class MinecraftBlockExaminer extends Object implements BlockExaminer
  • Constructor Details

    • MinecraftBlockExaminer

      public MinecraftBlockExaminer()
  • Method Details

    • getCost

      public float getCost(BlockSource source, PathPoint point)
      Specified by:
      getCost in interface BlockExaminer
    • isPassable

      public BlockExaminer.PassableState isPassable(BlockSource source, PathPoint point)
      Specified by:
      isPassable in interface BlockExaminer
    • canStandIn

      public static boolean canStandIn(Block... blocks)
    • canStandIn

      public static boolean canStandIn(Material... mat)
    • canStandOn

      public static boolean canStandOn(Block block)
    • canStandOn

      public static boolean canStandOn(Material mat)
    • findRandomValidLocation

      public static Location findRandomValidLocation(Location base, int xrange, int yrange)
    • findRandomValidLocation

      public static Location findRandomValidLocation(Location base, int xrange, int yrange, com.google.common.base.Function<Block,Boolean> filter)
    • findRandomValidLocation

      public static Location findRandomValidLocation(Location base, int xrange, int yrange, com.google.common.base.Function<Block,Boolean> filter, Random random)
    • findValidLocation

      public static Location findValidLocation(Location location, int radius)
    • findValidLocation

      public static Location findValidLocation(Location location, int radius, int yradius)
    • findValidLocationAbove

      public static Location findValidLocationAbove(Location location, int radius)
    • isDoor

      public static boolean isDoor(Material in)
    • isGate

      public static boolean isGate(Material in)
    • isLiquid

      public static boolean isLiquid(Material... materials)
    • isLiquidOrInLiquid

      public static boolean isLiquidOrInLiquid(Block block)