public class BlockUtils extends Object
| Constructor and Description |
|---|
BlockUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.nukkitx.math.vector.Vector3i |
getBlockPosition(com.nukkitx.math.vector.Vector3i blockPos,
int face)
Given a position, return the position if a block were located on the specified block face.
|
static double |
getBreakTime(double blockHardness,
int blockId,
ItemEntry item,
com.github.steveice10.opennbt.tag.builtin.CompoundTag nbtData,
GeyserSession session) |
public static double getBreakTime(double blockHardness,
int blockId,
ItemEntry item,
com.github.steveice10.opennbt.tag.builtin.CompoundTag nbtData,
GeyserSession session)
public static com.nukkitx.math.vector.Vector3i getBlockPosition(com.nukkitx.math.vector.Vector3i blockPos,
int face)
blockPos - the block positionface - the face of the block - see BlockFaceCopyright © 2020 GeyserMC. All rights reserved.