Class BlockCrawler


  • public class BlockCrawler
    extends java.lang.Object
    Collects all adjacent blocks of the same material
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int[][] ADJ_LOC
      The constant ADJ_LOC.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockCrawler​(int maxSize)
      Instantiates a new Block crawler.
    • Method Summary

      Modifier and Type Method Description
      java.util.ArrayList<org.bukkit.Location> start​(org.bukkit.block.Block origBlock)
      Will return a list of the location of all blocks that match the block's type and are adjacent to it
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ADJ_LOC

        public static final int[][] ADJ_LOC
        The constant ADJ_LOC.
    • Constructor Detail

      • BlockCrawler

        public BlockCrawler​(int maxSize)
        Instantiates a new Block crawler.
        Parameters:
        maxSize - the max size
    • Method Detail

      • start

        public java.util.ArrayList<org.bukkit.Location> start​(org.bukkit.block.Block origBlock)
        Will return a list of the location of all blocks that match the block's type and are adjacent to it
        Parameters:
        origBlock - the orig block
        Returns:
        array list