Class BlockUtil

java.lang.Object
ml.karmaconfigs.api.bukkit.util.BlockUtil

public final class BlockUtil extends Object
Karma block utilities
  • Constructor Details

    • BlockUtil

      public BlockUtil()
  • Method Details

    • getBlocksBetween

      public static Set<org.bukkit.block.Block> getBlocksBetween(org.bukkit.Location loc1, org.bukkit.Location loc2) throws IllegalArgumentException
      Get the blocks between two locations
      Parameters:
      loc1 - the first location
      loc2 - the second location
      Returns:
      the blocks between the two locations
      Throws:
      IllegalArgumentException - if some worlds are null or does not match
    • getLowestBlockAt

      public static org.bukkit.block.Block getLowestBlockAt(org.bukkit.Location location, boolean acceptLiquid)
      Get the lowest block location
      Parameters:
      location - the start location
      acceptLiquid - accept liquid block as a valid block
      Returns:
      the lowest block