Class GeyserSpigotWorldManager
java.lang.Object
org.geysermc.connector.network.translators.world.WorldManager
org.geysermc.connector.network.translators.world.GeyserWorldManager
org.geysermc.platform.spigot.world.manager.GeyserSpigotWorldManager
- Direct Known Subclasses:
GeyserSpigot1_12WorldManager,GeyserSpigotFallbackWorldManager,GeyserSpigotNativeWorldManager
The base world manager to use when there is no supported NMS revision
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intThe current client protocol version for ViaVersion usage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBlockAt(GeyserSession session, int x, int y, int z)intgetBlockNetworkId(org.bukkit.entity.Player player, org.bukkit.block.Block block, int x, int y, int z)getGameRuleBool(GeyserSession session, GameRule gameRule)intgetGameRuleInt(GeyserSession session, GameRule gameRule)com.nukkitx.nbt.NbtMapgetLecternDataAt(GeyserSession session, int x, int y, int z, boolean isChunkLoad)booleanbooleanhasPermission(GeyserSession session, String permission)booleanisLegacy()This must be set to true if we are pre-1.13, anddoes not exist.booleanMethods 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
-
Field Details
-
CLIENT_PROTOCOL_VERSION
protected static final int CLIENT_PROTOCOL_VERSIONThe current client protocol version for ViaVersion usage.- See Also:
- Constant Field Values
-
-
Constructor Details
-
GeyserSpigotWorldManager
public GeyserSpigotWorldManager(org.bukkit.plugin.Plugin plugin)
-
-
Method Details
-
getBlockAt
- Overrides:
getBlockAtin classGeyserWorldManager
-
getBlockNetworkId
public int getBlockNetworkId(org.bukkit.entity.Player player, org.bukkit.block.Block block, int x, int y, int z) -
hasOwnChunkCache
public boolean hasOwnChunkCache()- Overrides:
hasOwnChunkCachein classGeyserWorldManager
-
getLecternDataAt
public com.nukkitx.nbt.NbtMap getLecternDataAt(GeyserSession session, int x, int y, int z, boolean isChunkLoad)- Overrides:
getLecternDataAtin classGeyserWorldManager
-
shouldExpectLecternHandled
public boolean shouldExpectLecternHandled()- Overrides:
shouldExpectLecternHandledin classGeyserWorldManager
-
getGameRuleBool
- Overrides:
getGameRuleBoolin classGeyserWorldManager
-
getGameRuleInt
- Overrides:
getGameRuleIntin classGeyserWorldManager
-
hasPermission
- Overrides:
hasPermissionin classGeyserWorldManager
-
isLegacy
public boolean isLegacy()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.- Returns:
- whether there is a difference between client block state and server block state that requires extra processing
-