Search in sources :

Example 1 with MessageClientGuiSetSkin

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

the class GuiTabArmourerDisplaySettings method actionPerformed.

@Override
protected void actionPerformed(GuiButton button) {
    if (button.id == 8) {
        String username = textUserSkin.getText().trim();
        PacketHandler.networkWrapper.sendToServer(new MessageClientGuiSetSkin(new PlayerTexture(username, TextureType.values()[textureTypeList.getListSelectedIndex()])));
    } else {
        PacketHandler.networkWrapper.sendToServer(new MessageClientGuiButton((byte) button.id));
    }
}
Also used : PlayerTexture(riskyken.armourersWorkshop.client.texture.PlayerTexture) MessageClientGuiSetSkin(riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiSetSkin) MessageClientGuiButton(riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiButton)

Aggregations

PlayerTexture (riskyken.armourersWorkshop.client.texture.PlayerTexture)1 MessageClientGuiButton (riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiButton)1 MessageClientGuiSetSkin (riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiSetSkin)1