Package ml.karmaconfigs.api.bukkit.util
Class BlockUtil
java.lang.Object
ml.karmaconfigs.api.bukkit.util.BlockUtil
Karma block utilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.bukkit.block.Block>getBlocksBetween(org.bukkit.Location loc1, org.bukkit.Location loc2)Get the blocks between two locationsstatic org.bukkit.block.BlockgetLowestBlockAt(org.bukkit.Location location, boolean acceptLiquid)Get the lowest block location
-
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 IllegalArgumentExceptionGet the blocks between two locations- Parameters:
loc1- the first locationloc2- 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 locationacceptLiquid- accept liquid block as a valid block- Returns:
- the lowest block
-