public class BlockUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static NukkitItemInstance |
AIR |
| Constructor and Description |
|---|
BlockUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BlockState |
createBlockState(com.flowpowered.math.vector.Vector3i position,
BlockFace face,
ItemInstance item) |
static boolean |
replaceBlockState(Player player,
Block block,
BlockState replacementState) |
static boolean |
setBlockState(Player player,
com.flowpowered.math.vector.Vector3i position,
BlockState state) |
public static final NukkitItemInstance AIR
public static boolean setBlockState(Player player, com.flowpowered.math.vector.Vector3i position, BlockState state)
public static boolean replaceBlockState(Player player, Block block, BlockState replacementState)
public static BlockState createBlockState(com.flowpowered.math.vector.Vector3i position, BlockFace face, ItemInstance item)
Copyright © 2017–2019 NukkitX. All rights reserved.