public class ChunkUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkUtils.ChunkData |
| Modifier and Type | Field and Description |
|---|---|
static it.unimi.dsi.fastutil.objects.Object2IntMap<com.github.steveice10.mc.protocol.data.game.entity.metadata.Position> |
CACHED_BLOCK_ENTITIES
Temporarily stores positions of BlockState values that are needed for certain block entities actively.
|
static byte[] |
EMPTY_LEVEL_CHUNK_DATA |
static ChunkSection |
EMPTY_SECTION |
static BlockStorage |
EMPTY_STORAGE |
| Constructor and Description |
|---|
ChunkUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sendEmptyChunks(GeyserSession session,
com.nukkitx.math.vector.Vector3i position,
int radius,
boolean forceUpdate) |
static ChunkUtils.ChunkData |
translateToBedrock(GeyserSession session,
com.github.steveice10.mc.protocol.data.game.chunk.Column column,
boolean isNonFullChunk) |
static void |
updateBlock(GeyserSession session,
int blockState,
com.github.steveice10.mc.protocol.data.game.entity.metadata.Position position)
Sends a block update to the Bedrock client.
|
static void |
updateBlock(GeyserSession session,
int blockState,
com.nukkitx.math.vector.Vector3i position)
Sends a block update to the Bedrock client.
|
static void |
updateChunkPosition(GeyserSession session,
com.nukkitx.math.vector.Vector3i position) |
public static final it.unimi.dsi.fastutil.objects.Object2IntMap<com.github.steveice10.mc.protocol.data.game.entity.metadata.Position> CACHED_BLOCK_ENTITIES
public static final byte[] EMPTY_LEVEL_CHUNK_DATA
public static final BlockStorage EMPTY_STORAGE
public static final ChunkSection EMPTY_SECTION
public static ChunkUtils.ChunkData translateToBedrock(GeyserSession session, com.github.steveice10.mc.protocol.data.game.chunk.Column column, boolean isNonFullChunk)
public static void updateChunkPosition(GeyserSession session, com.nukkitx.math.vector.Vector3i position)
public static void updateBlock(GeyserSession session, int blockState, com.github.steveice10.mc.protocol.data.game.entity.metadata.Position position)
session - the Bedrock session to send/register the block toblockState - the Java block state of the blockposition - the position of the blockpublic static void updateBlock(GeyserSession session, int blockState, com.nukkitx.math.vector.Vector3i position)
session - the Bedrock session to send/register the block toblockState - the Java block state of the blockposition - the position of the blockpublic static void sendEmptyChunks(GeyserSession session, com.nukkitx.math.vector.Vector3i position, int radius, boolean forceUpdate)
Copyright © 2021 GeyserMC. All rights reserved.