Class GeyserSpigotLegacyNativeWorldManager
java.lang.Object
org.geysermc.geyser.level.WorldManager
org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotWorldManager
org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotNativeWorldManager
org.geysermc.geyser.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.geyser.platform.spigot.world.manager.GeyserSpigotNativeWorldManager
adapter -
Constructor Summary
ConstructorsConstructorDescriptionGeyserSpigotLegacyNativeWorldManager(GeyserSpigotPlugin plugin, boolean isPaper) -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockAt(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z) booleanisLegacy()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.Methods inherited from class org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotNativeWorldManager
getBiomeIdentifiersMethods inherited from class org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotWorldManager
getBlockNetworkId, getDecoratedPotData, getDefaultGameMode, hasOwnChunkCacheMethods inherited from class org.geysermc.geyser.level.WorldManager
blockAt, blockAt, getBlockAt, getBlockAtAsync, getBlockAtAsync, getBlocksAt, setDefaultGameMode, setDifficulty
-
Constructor Details
-
GeyserSpigotLegacyNativeWorldManager
-
-
Method Details
-
getBlockAt
public int getBlockAt(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z) - Overrides:
getBlockAtin classGeyserSpigotNativeWorldManager
-
isLegacy
public boolean isLegacy()Description copied from class:GeyserSpigotWorldManagerThis 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
-