use of forestry.core.network.PacketUpdate in project ForestryMC by ForestryMC.
the class ContainerWorktable method sendRecipeClick.
public void sendRecipeClick(int mouseButton, int recipeIndex) {
PacketPayload payload = new PacketPayload(2, 0, 0);
payload.intPayload[0] = mouseButton;
payload.intPayload[1] = recipeIndex;
PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
Proxies.net.sendToServer(packet);
}
use of forestry.core.network.PacketUpdate in project ForestryMC by ForestryMC.
the class TileFruitPod method fromPacket.
@Override
public void fromPacket(ForestryPacket packetRaw) {
PacketUpdate packet = (PacketUpdate) packetRaw;
maturity = packet.payload.shortPayload[0];
if (packet.payload.intPayload != null && packet.payload.intPayload.length > 0) {
indices = packet.payload.intPayload;
}
worldObj.func_147479_m(xCoord, yCoord, zCoord);
}
Aggregations