Class Vein

java.lang.Object
io.github.bakedlibs.dough.blocks.Vein

public final class Vein extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<Block>
    find(Block b, int limit)
    This method gives you a List of all Blocks that are directly or indirectly connected to the given Block and share the same Material as the given Block.
    static List<Block>
    find(Block b, int limit, Predicate<Block> predicate)
    This method gives you a List of all Blocks that are directly or indirectly connected to the given Block and pass the given Predicate.

    Methods inherited from class java.lang.Object

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

    • find

      public static List<Block> find(Block b, int limit)
      This method gives you a List of all Blocks that are directly or indirectly connected to the given Block and share the same Material as the given Block.
      Parameters:
      b - The Block to start with
      limit - The max amount of Blocks to expand into
      Returns:
      A List of all Blocks
    • find

      public static List<Block> find(Block b, int limit, Predicate<Block> predicate)
      This method gives you a List of all Blocks that are directly or indirectly connected to the given Block and pass the given Predicate.
      Parameters:
      b - The Block to start with
      limit - The max amount of Blocks to expand into
      predicate - A Predicate describing what Blocks to count
      Returns:
      A List of all Blocks