public class BlockUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static BlockState |
AIR |
static com.flowpowered.math.vector.Vector3i[] |
AROUND_POSITIONS |
| Constructor and Description |
|---|
BlockUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BlockState |
createBlockState(com.flowpowered.math.vector.Vector3i position,
BlockFace face,
ItemStack 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 BlockState AIR
public static final com.flowpowered.math.vector.Vector3i[] AROUND_POSITIONS
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, ItemStack item)
Copyright © 2017–2020 NukkitX. All rights reserved.