Search in sources :

Example 1 with MessageClientGuiColourUpdate

use of riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiColourUpdate in project Armourers-Workshop by RiskyKen.

the class GuiColourMixer method updateColour.

private void updateColour() {
    Color colourOld = new Color(tileEntityColourMixer.getColour(0));
    PaintType paintType = PaintType.values()[paintTypeDropDown.getListSelectedIndex()];
    if (this.colour.equals(colourOld)) {
        if (paintType == tileEntityColourMixer.getPaintType(0))
            return;
    }
    MessageClientGuiColourUpdate message = new MessageClientGuiColourUpdate(this.colour.getRGB(), false, paintType);
    PacketHandler.networkWrapper.sendToServer(message);
}
Also used : MessageClientGuiColourUpdate(riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiColourUpdate) Color(java.awt.Color) PaintType(riskyken.armourersWorkshop.common.painting.PaintType)

Aggregations

Color (java.awt.Color)1 MessageClientGuiColourUpdate (riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiColourUpdate)1 PaintType (riskyken.armourersWorkshop.common.painting.PaintType)1