public class GeyserSpigotWorldManager extends GeyserWorldManager
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CLIENT_PROTOCOL_VERSION
The current client protocol version for ViaVersion usage.
|
| Constructor and Description |
|---|
GeyserSpigotWorldManager(boolean use3dBiomes) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getBiomeDataAt(GeyserSession session,
int x,
int z) |
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) |
Boolean |
getGameRuleBool(GeyserSession session,
GameRule gameRule) |
int |
getGameRuleInt(GeyserSession session,
GameRule gameRule) |
boolean |
hasMoreBlockDataThanChunkCache() |
boolean |
hasPermission(GeyserSession session,
String permission) |
boolean |
isLegacy()
This must be set to true if we are pre-1.13, and
does not exist. |
setDifficulty, setGameRule, setPlayerGameModegetBlockAt, getBlockAtprotected static final int CLIENT_PROTOCOL_VERSION
public int getBlockAt(GeyserSession session, int x, int y, int z)
getBlockAt in class GeyserWorldManagerpublic void getBlocksInSection(GeyserSession session, int x, int y, int z, com.github.steveice10.mc.protocol.data.game.chunk.Chunk chunk)
getBlocksInSection in class GeyserWorldManagerpublic boolean hasMoreBlockDataThanChunkCache()
hasMoreBlockDataThanChunkCache in class GeyserWorldManagerpublic int[] getBiomeDataAt(GeyserSession session, int x, int z)
getBiomeDataAt in class GeyserWorldManagerpublic Boolean getGameRuleBool(GeyserSession session, GameRule gameRule)
getGameRuleBool in class GeyserWorldManagerpublic int getGameRuleInt(GeyserSession session, GameRule gameRule)
getGameRuleInt in class GeyserWorldManagerpublic boolean hasPermission(GeyserSession session, String permission)
hasPermission in class GeyserWorldManagerpublic boolean isLegacy()
does 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.Copyright © 2020 GeyserMC. All rights reserved.