Class BlockUtils

java.lang.Object
ch.njol.skript.bukkitutil.BlockUtils
Direct Known Subclasses:
BlockUtils

public class BlockUtils extends Object
  • Constructor Details

    • BlockUtils

      public BlockUtils()
  • Method Details

    • createBlockData

      @Nullable public static @Nullable BlockData createBlockData(String dataString)
    • blockToString

      public static String blockToString(Block block, int flags)
      Get the string version of a block, including type and location. ex: 'stone' at 1.5, 1.5, 1.5 in world 'world' World can be null if the Block is Skript's BlockStateBlock.
      Parameters:
      block - Block to get string of
      flags - unknown
      Returns:
      String version of block
    • extractBlock

      public static Block extractBlock(Block block)
      Extracts the actual CraftBukkit block from the given argument, by extracting the block from DelayedChangeBlock if the given argument is a DelayedChangeBlock.
      Returns:
      the actual CB block from the given argument