Class GeyserSpigot1_12WorldManager

Direct Known Subclasses:
GeyserSpigot1_12NativeWorldManager

public class GeyserSpigot1_12WorldManager extends GeyserSpigotWorldManager
Should be used when ViaVersion is present, no NMS adapter is being used, and we are pre-1.13. You need ViaVersion to connect to an older server with the Geyser-Spigot plugin.
  • Constructor Details

    • GeyserSpigot1_12WorldManager

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

    • getBlockAt

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

      public int getBlockNetworkId(org.bukkit.entity.Player player, org.bukkit.block.Block block, int x, int y, int z)
      Overrides:
      getBlockNetworkId in class GeyserSpigotWorldManager
    • getLegacyBlock

      public int getLegacyBlock(com.viaversion.viaversion.protocols.protocol1_13to1_12_2.storage.BlockStorage storage, int blockId, int x, int y, int z)
      Parameters:
      storage - ViaVersion's block entity storage (used to fix block entity state differences)
      blockId - the pre-1.13 block id
      x - X coordinate of block
      y - Y coordinate of block
      z - Z coordinate of block
      Returns:
      the block state updated to the latest Minecraft version
    • 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