public class GeyserSpigot1_12WorldManager extends GeyserSpigotWorldManager
CLIENT_PROTOCOL_VERSION| Constructor and Description |
|---|
GeyserSpigot1_12WorldManager() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockAt(GeyserSession session,
int x,
int y,
int z) |
void |
getBlocksInSection(GeyserSession session,
int x,
int y,
int z,
com.github.steveice10.mc.protocol.data.game.chunk.Chunk chunk) |
int |
getLegacyBlock(us.myles.ViaVersion.protocols.protocol1_13to1_12_2.storage.BlockStorage storage,
int blockId,
int x,
int y,
int z) |
boolean |
isLegacy()
This must be set to true if we are pre-1.13, and
does not exist. |
getBiomeDataAt, getGameRuleBool, getGameRuleInt, hasMoreBlockDataThanChunkCache, hasPermissionsetDifficulty, setGameRule, setPlayerGameModegetBlockAt, getBlockAtpublic int getBlockAt(GeyserSession session, int x, int y, int z)
getBlockAt in class GeyserSpigotWorldManagerpublic int getLegacyBlock(us.myles.ViaVersion.protocols.protocol1_13to1_12_2.storage.BlockStorage storage,
int blockId,
int x,
int y,
int z)
storage - ViaVersion's block entity storage (used to fix block entity state differences)blockId - the pre-1.13 block idx - X coordinate of blocky - Y coordinate of blockz - Z coordinate of blockpublic void getBlocksInSection(GeyserSession session, int x, int y, int z, com.github.steveice10.mc.protocol.data.game.chunk.Chunk chunk)
getBlocksInSection in class GeyserSpigotWorldManagerpublic boolean isLegacy()
GeyserSpigotWorldManagerdoes not exist.
This should be set to true if we are post-1.13 but before the latest version, and we should convert the old block state id
to the current one.isLegacy in class GeyserSpigotWorldManagerCopyright © 2020 GeyserMC. All rights reserved.