Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
514 B
2
Indexable
Never
package ballistickemu.Lobby.handlers;

import ballistickemu.Tools.StickPacketMaker;
import ballistickemu.Types.StickClient;
import java.util.LinkedHashMap;


public class InventoryRequestHandler
{
  public static void HandlePacket(StickClient client, String packet)
  {
    if (client.getInventory().size() < 2) {
      client.write(StickPacketMaker.getDefaultInventoryPacket());
    } else {
      client.write(StickPacketMaker.getInventoryPacket(client.getFormattedInventoryData()));
    }
  }
}