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