public class BlockUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.github.steveice10.mc.protocol.data.game.entity.metadata.Position |
POSITION_ZERO
A static constant of
Position with all values being zero. |
| 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 final com.github.steveice10.mc.protocol.data.game.entity.metadata.Position POSITION_ZERO
Position with all values being zero.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 © 2021 GeyserMC. All rights reserved.