Class GeyserSpigotLegacyNativeWorldManager
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.GeyserSpigotNativeWorldManager
org.geysermc.platform.spigot.world.manager.GeyserSpigotLegacyNativeWorldManager
Used when block IDs need to be translated to the latest version
-
Field Summary
Fields inherited from class org.geysermc.platform.spigot.world.manager.GeyserSpigotNativeWorldManager
adapterFields 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)booleanisLegacy()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, hasOwnChunkCache, 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
-
GeyserSpigotLegacyNativeWorldManager
-
-
Method Details
-
getBlockAt
- Overrides:
getBlockAtin classGeyserSpigotNativeWorldManager
-
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
-