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
adapterFields inherited from class org.geysermc.geyser.platform.spigot.world.manager.GeyserSpigotWorldManager
CLIENT_PROTOCOL_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockAt(GeyserSession session, int x, int y, int z)Gets the Java block state at the specified locationbooleanisLegacy()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, shouldExpectLecternHandledMethods inherited from class org.geysermc.geyser.level.GeyserWorldManager
setDifficulty, setGameRule, setPlayerGameModeMethods inherited from class org.geysermc.geyser.level.WorldManager
getBlockAt, getBlockAt
-
Constructor Details
-
GeyserSpigotLegacyNativeWorldManager
-
-
Method Details
-
getBlockAt
Description copied from class:WorldManagerGets the Java block state at the specified location- Overrides:
getBlockAtin 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: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
-