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(org.bukkit.plugin.Plugin plugin,
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) |
com.nukkitx.nbt.NbtMap |
getLecternDataAt(GeyserSession session,
int x,
int y,
int z,
boolean isChunkLoad) |
boolean |
hasOwnChunkCache() |
boolean |
hasPermission(GeyserSession session,
String permission) |
boolean |
isLegacy()
This must be set to true if we are pre-1.13, and
does not exist. |
boolean |
shouldExpectLecternHandled() |
setDifficulty, setGameRule, setPlayerGameModegetBlockAt, getBlockAtprotected static final int CLIENT_PROTOCOL_VERSION
public GeyserSpigotWorldManager(org.bukkit.plugin.Plugin plugin,
boolean use3dBiomes)
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 hasOwnChunkCache()
hasOwnChunkCache in class GeyserWorldManagerpublic int[] getBiomeDataAt(GeyserSession session, int x, int z)
getBiomeDataAt in class GeyserWorldManagerpublic com.nukkitx.nbt.NbtMap getLecternDataAt(GeyserSession session, int x, int y, int z, boolean isChunkLoad)
getLecternDataAt in class GeyserWorldManagerpublic boolean shouldExpectLecternHandled()
shouldExpectLecternHandled 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 © 2021 GeyserMC. All rights reserved.