public class PistonBlockEntityTranslator extends Object
| Constructor and Description |
|---|
PistonBlockEntityTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static com.nukkitx.nbt.NbtMap |
getTag(int blockState,
com.nukkitx.math.vector.Vector3i position)
Calculates the Nukkit CompoundTag to send to the client on chunk
|
static boolean |
isBlock(int blockState)
Used in ChunkUtils to determine if the block is a piston.
|
public static boolean isBlock(int blockState)
blockState - Java BlockState of block.public static com.nukkitx.nbt.NbtMap getTag(int blockState,
com.nukkitx.math.vector.Vector3i position)
blockState - Java block state of block.position - Bedrock position of piston.Copyright © 2021 GeyserMC. All rights reserved.