use of forestry.core.network.packets.PacketGuiLayoutSelect in project ForestryMC by ForestryMC.
the class ContainerSolderingIron method handleSelectionRequest.
@Override
public void handleSelectionRequest(EntityPlayerMP player, int primary, int secondary) {
if (secondary == 0) {
if (primary == 0) {
inventory.advanceLayout();
}
} else if (primary == 0) {
inventory.regressLayout();
}
IForestryPacketClient packetResponse = new PacketGuiLayoutSelect(inventory.getLayout().getUID());
NetworkUtil.sendToPlayer(packetResponse, player);
}
Aggregations