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
    Constructor
    Description
    GeyserSpigotWorldManager​(org.bukkit.plugin.Plugin plugin)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getBlockAt​(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z)
     
    int
    getBlockNetworkId​(org.bukkit.block.Block block)
     
    com.github.steveice10.mc.protocol.data.game.entity.player.GameMode
    getDefaultGameMode​(org.geysermc.geyser.session.GeyserSession session)
     
    boolean
    getGameRuleBool​(org.geysermc.geyser.session.GeyserSession session, org.geysermc.geyser.level.GameRule gameRule)
     
    int
    getGameRuleInt​(org.geysermc.geyser.session.GeyserSession session, org.geysermc.geyser.level.GameRule gameRule)
     
    @NonNull CompletableFuture<@Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag>
    getPickItemNbt​(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z, boolean addNbtData)
     
    boolean
     
    boolean
    hasPermission​(org.geysermc.geyser.session.GeyserSession session, String permission)
     
    boolean
    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.
    void
    sendLecternData​(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z)
     
    void
    sendLecternData​(org.geysermc.geyser.session.GeyserSession session, int x, int z, List<com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityInfo> blockEntityInfos)
     
    boolean
    shouldExpectLecternHandled​(org.geysermc.geyser.session.GeyserSession session)
     

    Methods inherited from class org.geysermc.geyser.level.WorldManager

    getBiomeIdentifiers, getBlockAt, getBlockAtAsync, getBlockAtAsync, getBlocksAt, setDefaultGameMode, setDifficulty, setGameRule, setPlayerGameMode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getBlockAt in class org.geysermc.geyser.level.WorldManager
    • getBlockNetworkId

      public int getBlockNetworkId(org.bukkit.block.Block block)
    • hasOwnChunkCache

      public boolean hasOwnChunkCache()
      Specified by:
      hasOwnChunkCache in class org.geysermc.geyser.level.WorldManager
    • sendLecternData

      public void sendLecternData(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z)
      Specified by:
      sendLecternData in class org.geysermc.geyser.level.WorldManager
    • sendLecternData

      public void sendLecternData(org.geysermc.geyser.session.GeyserSession session, int x, int z, List<com.github.steveice10.mc.protocol.data.game.level.block.BlockEntityInfo> blockEntityInfos)
      Specified by:
      sendLecternData in class org.geysermc.geyser.level.WorldManager
    • shouldExpectLecternHandled

      public boolean shouldExpectLecternHandled(org.geysermc.geyser.session.GeyserSession session)
      Specified by:
      shouldExpectLecternHandled in class org.geysermc.geyser.level.WorldManager
    • getGameRuleBool

      public boolean getGameRuleBool(org.geysermc.geyser.session.GeyserSession session, org.geysermc.geyser.level.GameRule gameRule)
      Specified by:
      getGameRuleBool in class org.geysermc.geyser.level.WorldManager
    • getGameRuleInt

      public int getGameRuleInt(org.geysermc.geyser.session.GeyserSession session, org.geysermc.geyser.level.GameRule gameRule)
      Specified by:
      getGameRuleInt in class org.geysermc.geyser.level.WorldManager
    • getDefaultGameMode

      public com.github.steveice10.mc.protocol.data.game.entity.player.GameMode getDefaultGameMode(org.geysermc.geyser.session.GeyserSession session)
      Specified by:
      getDefaultGameMode in class org.geysermc.geyser.level.WorldManager
    • hasPermission

      public boolean hasPermission(org.geysermc.geyser.session.GeyserSession session, String permission)
      Specified by:
      hasPermission in class org.geysermc.geyser.level.WorldManager
    • getPickItemNbt

      public @NonNull CompletableFuture<@Nullable com.github.steveice10.opennbt.tag.builtin.CompoundTag> getPickItemNbt(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z, boolean addNbtData)
      Overrides:
      getPickItemNbt in class org.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