public class GeyserSpigot1_12WorldManager extends GeyserSpigotWorldManager
CLIENT_PROTOCOL_VERSION| Constructor and Description |
|---|
GeyserSpigot1_12WorldManager(org.bukkit.plugin.Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockAt(GeyserSession session,
int x,
int y,
int z) |
int |
getLegacyBlock(com.viaversion.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. |
getGameRuleBool, getGameRuleInt, getLecternDataAt, hasOwnChunkCache, hasPermission, shouldExpectLecternHandledsetDifficulty, setGameRule, setPlayerGameModegetBlockAt, getBlockAtpublic GeyserSpigot1_12WorldManager(org.bukkit.plugin.Plugin plugin)
public int getBlockAt(GeyserSession session, int x, int y, int z)
getBlockAt in class GeyserSpigotWorldManagerpublic int getLegacyBlock(com.viaversion.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 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 © 2021 GeyserMC. All rights reserved.