Class GeyserSpigotWorldManager
java.lang.Object
org.geysermc.geyser.level.WorldManager
org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotWorldManager
- Direct Known Subclasses:
GeyserSpigotNativeWorldManager
public class GeyserSpigotWorldManager
extends org.geysermc.geyser.level.WorldManager
The base world manager to use when there is no supported NMS revision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockAt(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z) intgetBlockNetworkId(org.bukkit.block.Block block) voidgetDecoratedPotData(org.geysermc.geyser.session.GeyserSession session, org.cloudburstmc.math.vector.Vector3i pos, Consumer<Map<String, String>> apply) org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameModegetDefaultGameMode(org.geysermc.geyser.session.GeyserSession session) booleanbooleanisLegacy()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.level.WorldManager
blockAt, blockAt, getBlockAt, getBlockAtAsync, getBlockAtAsync, getBlocksAt, setDefaultGameMode, setDifficulty
-
Constructor Details
-
GeyserSpigotWorldManager
public GeyserSpigotWorldManager(org.bukkit.plugin.Plugin plugin)
-
-
Method Details
-
getBlockAt
public int getBlockAt(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z) - Specified by:
getBlockAtin classorg.geysermc.geyser.level.WorldManager
-
getBlockNetworkId
public int getBlockNetworkId(org.bukkit.block.Block block) -
hasOwnChunkCache
public boolean hasOwnChunkCache()- Specified by:
hasOwnChunkCachein classorg.geysermc.geyser.level.WorldManager
-
getDefaultGameMode
public org.geysermc.mcprotocollib.protocol.data.game.entity.player.GameMode getDefaultGameMode(org.geysermc.geyser.session.GeyserSession session) - Specified by:
getDefaultGameModein classorg.geysermc.geyser.level.WorldManager
-
getDecoratedPotData
public void getDecoratedPotData(org.geysermc.geyser.session.GeyserSession session, org.cloudburstmc.math.vector.Vector3i pos, Consumer<Map<String, String>> apply) - Overrides:
getDecoratedPotDatain classorg.geysermc.geyser.level.WorldManager
-
isLegacy
public boolean isLegacy()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.- Returns:
- whether there is a difference between client block state and server block state that requires extra processing
-