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
  • Field Summary

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

    RAW_TRANSFORMER
  • 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)
     
    void
    getDecoratedPotData(org.geysermc.geyser.session.GeyserSession session, org.cloudburstmc.math.vector.Vector3i pos, Consumer<List<String>> apply)
     
    org.geysermc.mcprotocollib.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 org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents>
    getPickItemComponents(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.

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

    blockAt, blockAt, 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
    • 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 org.geysermc.mcprotocollib.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
    • getPickItemComponents

      public @NonNull CompletableFuture<@Nullable org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents> getPickItemComponents(org.geysermc.geyser.session.GeyserSession session, int x, int y, int z, boolean addNbtData)
      Overrides:
      getPickItemComponents in class org.geysermc.geyser.level.WorldManager
    • getDecoratedPotData

      public void getDecoratedPotData(org.geysermc.geyser.session.GeyserSession session, org.cloudburstmc.math.vector.Vector3i pos, Consumer<List<String>> apply)
      Overrides:
      getDecoratedPotData 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