Class GeyserSpigotLegacyNativeWorldManager
java.lang.Object
org.geysermc.geyser.level.WorldManager
org.geysermc.geyser.level.GeyserWorldManager
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
Fields inherited from class org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotWorldManager
CLIENT_PROTOCOL_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getBlockAt(GeyserSession session, int x, int y, int z)
Gets the Java block state at the specified locationboolean
isLegacy()
This must be set to true if we are pre-1.13, anddoes not exist
.Methods inherited from class org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotWorldManager
getBlockNetworkId, getGameRuleBool, getGameRuleInt, getLecternDataAt, hasOwnChunkCache, hasPermission, shouldExpectLecternHandled
Methods inherited from class org.geysermc.geyser.level.GeyserWorldManager
setDifficulty, setGameRule, setPlayerGameMode
Methods inherited from class org.geysermc.geyser.level.WorldManager
getBlockAt, getBlockAt
-
Constructor Details
-
GeyserSpigotLegacyNativeWorldManager
-
-
Method Details
-
getBlockAt
Description copied from class:WorldManager
Gets the Java block state at the specified location- Overrides:
getBlockAt
in classGeyserSpigotNativeWorldManager
- Parameters:
session
- the sessionx
- the x coordinate to get the block aty
- the y coordinate to get the block atz
- the z coordinate to get the block at- Returns:
- the block state at the specified location
-
isLegacy
public boolean isLegacy()Description copied from class:GeyserSpigotWorldManager
This 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:
isLegacy
in classGeyserSpigotWorldManager
- Returns:
- whether there is a difference between client block state and server block state that requires extra processing
-