Class GeyserSpigotFallbackWorldManager


public class GeyserSpigotFallbackWorldManager extends GeyserSpigotWorldManager
Should only be used when we know GeyserSpigotWorldManager.getBlockAt(GeyserSession, int, int, int) cannot be accurate. Typically, this is when ViaVersion is not installed but a client still manages to connect. If this occurs to you somehow, please let us know!!
  • Constructor Details

    • GeyserSpigotFallbackWorldManager

      public GeyserSpigotFallbackWorldManager(org.bukkit.plugin.Plugin plugin)
  • Method Details

    • getBlockAt

      public int getBlockAt(GeyserSession session, int x, int y, int z)
      Overrides:
      getBlockAt in class GeyserSpigotWorldManager
    • hasOwnChunkCache

      public boolean hasOwnChunkCache()
      Overrides:
      hasOwnChunkCache in class GeyserSpigotWorldManager
    • isLegacy

      public boolean isLegacy()
      Description copied from class: GeyserSpigotWorldManager
      This must be set to true if we are pre-1.13, and does 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 class GeyserSpigotWorldManager
      Returns:
      whether there is a difference between client block state and server block state that requires extra processing