public class ChunkUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkUtils.ChunkData |
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_BIOME_DATA |
static byte[] |
EMPTY_CHUNK_DATA |
| Constructor and Description |
|---|
ChunkUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyDimensionHeight(GeyserSession session,
com.github.steveice10.opennbt.tag.builtin.CompoundTag dimensionTag)
Process the minimum and maximum heights for this dimension.
|
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,
int yOffset) |
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 byte[] EMPTY_CHUNK_DATA
public static final byte[] EMPTY_BIOME_DATA
public static ChunkUtils.ChunkData translateToBedrock(GeyserSession session, com.github.steveice10.mc.protocol.data.game.chunk.Column column, int yOffset)
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)
public static void applyDimensionHeight(GeyserSession session, com.github.steveice10.opennbt.tag.builtin.CompoundTag dimensionTag)
Copyright © 2021 GeyserMC. All rights reserved.