Package ch.njol.skript.bukkitutil
Class BlockUtils
java.lang.Object
ch.njol.skript.bukkitutil.BlockUtils
- Direct Known Subclasses:
BlockUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringblockToString(Block block, int flags) Get the string version of a block, including type and location.static @Nullable BlockDatacreateBlockData(String dataString) static BlockextractBlock(Block block) Extracts the actual CraftBukkit block from the given argument, by extracting the block fromDelayedChangeBlockif the given argument is aDelayedChangeBlock.
-
Constructor Details
-
BlockUtils
public BlockUtils()
-
-
Method Details
-
createBlockData
-
blockToString
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 offlags- unknown- Returns:
- String version of block
-
extractBlock
Extracts the actual CraftBukkit block from the given argument, by extracting the block fromDelayedChangeBlockif the given argument is aDelayedChangeBlock.- Returns:
- the actual CB block from the given argument
-