Interface VersionAdapter


public interface VersionAdapter
Interface for version specific code
  • Method Details

    • makeMapPacket

      Object makeMapPacket(boolean ignoreBounds, ClientsideMap map)
      Make a packet to send a map to a player
      Parameters:
      ignoreBounds - If true, implementations should use the full buffer and ignore the bounds
      map - The map
      Returns:
      The new packet
    • makeFramePacket

      Object makeFramePacket(int frameId, boolean visible, ClientsideMap map)
      Make a frame update packet to display fake items
      Parameters:
      frameId - The id of the frame
      map - The map to display
      Returns:
      The new packet
    • makeFramePacket

      default Object makeFramePacket(int frameId, ClientsideMap map)
    • makeFrameSpawnPacket

      Object makeFrameSpawnPacket(Frame frame)
      Make a frame spawn packet
      Parameters:
      frame - The frame to spawn
      Returns:
      The spawn packet
    • makeFrameDespawnPacket

      Object makeFrameDespawnPacket(Frame frame)
      Make a frame despawn packet
      Parameters:
      frame - The frame to despawn
      Returns:
      The despawn packet
    • sendPacket

      void sendPacket(org.bukkit.entity.Player player, Object packet)
      Send a packet to a playe
      Parameters:
      player - The player
      packet - The packet
    • inject

      void inject(org.bukkit.entity.Player player, PacketListener listener, org.bukkit.plugin.java.JavaPlugin plugin)
      Inject a packet listener into the players connection
      Parameters:
      player - The player to inject
      listener - The listener