code: public static void updateSlots(int inventoryId, List<MalisisSlot> slots, EntityPlayerMP player, int windowId)
  	{
  		Packet packet = new Packet(inventoryId, windowId);
  		for (MalisisSlot slot : slots)
  			packet.addSlot(slot);
  		MalisisCore.network.sendTo(packet, player);
  	}
docs: Sends a {@link Packet} to player to update the inventory slots.
  
  @param inventoryId the inventory id
  @param slots the slots
  @param player the player
  @param windowId the window id