Search in sources :

Example 1 with PacketGuiLayoutSelect

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);
}
Also used : IForestryPacketClient(forestry.core.network.IForestryPacketClient) PacketGuiLayoutSelect(forestry.core.network.packets.PacketGuiLayoutSelect)

Aggregations

IForestryPacketClient (forestry.core.network.IForestryPacketClient)1 PacketGuiLayoutSelect (forestry.core.network.packets.PacketGuiLayoutSelect)1