Class GeyserSpigotLegacyNativeWorldManager


public class GeyserSpigotLegacyNativeWorldManager extends GeyserSpigotNativeWorldManager
Used when block IDs need to be translated to the latest version
  • Constructor Details

    • GeyserSpigotLegacyNativeWorldManager

      public GeyserSpigotLegacyNativeWorldManager(GeyserSpigotPlugin plugin)
  • Method Details

    • getBlockAt

      public int getBlockAt(GeyserSession session, int x, int y, int z)
      Description copied from class: WorldManager
      Gets the Java block state at the specified location
      Overrides:
      getBlockAt in class GeyserSpigotNativeWorldManager
      Parameters:
      session - the session
      x - the x coordinate to get the block at
      y - the y coordinate to get the block at
      z - the z coordinate to get the block at
      Returns:
      the block state at the specified location
    • 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