Search in sources :

Example 1 with MessageItemFilter

use of lumien.randomthings.network.messages.MessageItemFilter in project Random-Things by lumien231.

the class GuiItemFilter method actionPerformed.

@Override
protected void actionPerformed(GuiButton pressedButton) {
    if (pressedButton instanceof GuiCustomButton) {
        ((GuiCustomButton) pressedButton).toggle();
    }
    MessageItemFilter message = new MessageItemFilter(pressedButton.id);
    PacketHandler.INSTANCE.sendToServer(message);
}
Also used : GuiCustomButton(lumien.randomthings.client.gui.elements.GuiCustomButton) MessageItemFilter(lumien.randomthings.network.messages.MessageItemFilter)

Aggregations

GuiCustomButton (lumien.randomthings.client.gui.elements.GuiCustomButton)1 MessageItemFilter (lumien.randomthings.network.messages.MessageItemFilter)1