Class GeyserSpigotFallbackWorldManager
java.lang.Object
org.geysermc.connector.network.translators.world.WorldManager
org.geysermc.connector.network.translators.world.GeyserWorldManager
org.geysermc.platform.spigot.world.manager.GeyserSpigotWorldManager
org.geysermc.platform.spigot.world.manager.GeyserSpigotFallbackWorldManager
Should only be used when we know
GeyserSpigotWorldManager.getBlockAt(GeyserSession, int, int, int)
cannot be accurate. Typically, this is when ViaVersion is not installed but a client still manages to connect.
If this occurs to you somehow, please let us know!!-
Field Summary
Fields inherited from class org.geysermc.platform.spigot.world.manager.GeyserSpigotWorldManager
CLIENT_PROTOCOL_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockAt(GeyserSession session, int x, int y, int z)booleanbooleanisLegacy()This must be set to true if we are pre-1.13, anddoes not exist.Methods inherited from class org.geysermc.platform.spigot.world.manager.GeyserSpigotWorldManager
getBlockNetworkId, getGameRuleBool, getGameRuleInt, getLecternDataAt, hasPermission, shouldExpectLecternHandledMethods inherited from class org.geysermc.connector.network.translators.world.GeyserWorldManager
setDifficulty, setGameRule, setPlayerGameModeMethods inherited from class org.geysermc.connector.network.translators.world.WorldManager
getBlockAt, getBlockAt
-
Constructor Details
-
GeyserSpigotFallbackWorldManager
public GeyserSpigotFallbackWorldManager(org.bukkit.plugin.Plugin plugin)
-
-
Method Details
-
getBlockAt
- Overrides:
getBlockAtin classGeyserSpigotWorldManager
-
hasOwnChunkCache
public boolean hasOwnChunkCache()- Overrides:
hasOwnChunkCachein classGeyserSpigotWorldManager
-
isLegacy
public boolean isLegacy()Description copied from class:GeyserSpigotWorldManagerThis must be set to true if we are pre-1.13, anddoes 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.- Overrides:
isLegacyin classGeyserSpigotWorldManager- Returns:
- whether there is a difference between client block state and server block state that requires extra processing
-