Interface SynchronizedPacketAccess


public interface SynchronizedPacketAccess
Bukkit-owned state exposed only inside a suspended packet callback.
  • Method Summary

    Modifier and Type
    Method
    Description
    block(int x, int y, int z)
    Returns a block in the synchronized world/region, or null when its chunk is not loaded.
    chunk(int x, int z)
    Returns a loaded chunk in the synchronized world/region without loading it.
    entity(int entityId)
    Looks up an entity in the synchronized world/region.
    location(double x, double y, double z)
    Creates a Bukkit location in the synchronized world.
    Returns the connection's Bukkit player, or null before play.
  • Method Details

    • player

      Object player()
      Returns the connection's Bukkit player, or null before play.
    • entity

      Object entity(int entityId)
      Looks up an entity in the synchronized world/region.
    • location

      Object location(double x, double y, double z)
      Creates a Bukkit location in the synchronized world.
    • block

      Object block(int x, int y, int z)
      Returns a block in the synchronized world/region, or null when its chunk is not loaded.
    • chunk

      Object chunk(int x, int z)
      Returns a loaded chunk in the synchronized world/region without loading it.