widget.addToContainer(this);
widgets.add(widget);
}
public void sendWidgetDataToClient(Widget widget, ICrafting player, byte[] data) {
PacketGuiWidget pkt = new PacketGuiWidget(windowId, widgets.indexOf(widget), data);
BuildCraftCore.instance.sendToPlayer((EntityPlayer) player, pkt);
}