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));
}
}
Aggregations