use of forestry.core.network.PacketPayload in project ForestryMC by ForestryMC.
the class ContainerEscritoire method sendProbeClick.
public void sendProbeClick() {
PacketPayload payload = new PacketPayload(1, 0, 0);
payload.intPayload[0] = -1;
PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
Proxies.net.sendToServer(packet);
}
use of forestry.core.network.PacketPayload in project ForestryMC by ForestryMC.
the class ContainerEscritoire method sendTokenClick.
public void sendTokenClick(int index) {
PacketPayload payload = new PacketPayload(1, 0, 0);
payload.intPayload[0] = index;
PacketUpdate packet = new PacketUpdate(PacketIds.GUI_SELECTION_CHANGE, payload);
Proxies.net.sendToServer(packet);
}
use of forestry.core.network.PacketPayload in project ForestryMC by ForestryMC.
the class TileFruitPod method toPacket.
private ForestryPacket toPacket() {
PacketPayload payload = new PacketPayload(indices.length, 1);
payload.shortPayload[0] = maturity;
payload.intPayload = indices;
return new PacketUpdate(PacketIds.TILE_UPDATE, xCoord, yCoord, zCoord, payload);
}
use of forestry.core.network.PacketPayload in project ForestryMC by ForestryMC.
the class ContainerSolderingIron method advanceSelection.
public void advanceSelection(int index, World world) {
PacketPayload payload = new PacketPayload(2, 0, 0);
payload.intPayload[0] = index;
payload.intPayload[1] = 0;
sendSelectionChange(payload);
}
use of forestry.core.network.PacketPayload in project ForestryMC by ForestryMC.
the class ContainerSolderingIron method regressSelection.
public void regressSelection(int index, World world) {
PacketPayload payload = new PacketPayload(2, 0, 0);
payload.intPayload[0] = index;
payload.intPayload[1] = 1;
sendSelectionChange(payload);
}
Aggregations