use of riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiSetArmourerSkinType in project Armourers-Workshop by RiskyKen.
the class GuiTabArmourerMain method onDropDownListChanged.
@Override
public void onDropDownListChanged(GuiDropDownList dropDownList) {
DropDownListItem listItem = dropDownList.getListSelectedItem();
ISkinType skinType = SkinTypeRegistry.INSTANCE.getSkinTypeFromRegistryName(listItem.tag);
((GuiArmourer) parent).skinTypeUpdate(skinType);
PacketHandler.networkWrapper.sendToServer(new MessageClientGuiSetArmourerSkinType(skinType));
}
use of riskyken.armourersWorkshop.common.network.messages.client.MessageClientGuiSetArmourerSkinType in project Armourers-Workshop by RiskyKen.
the class GuiMiniArmourerBuilding method onDropDownListChanged.
@Override
public void onDropDownListChanged(GuiDropDownList dropDownList) {
if (dropDownList == dropDownSkins) {
DropDownListItem listItem = dropDownList.getListSelectedItem();
ISkinType skinType = SkinTypeRegistry.INSTANCE.getSkinTypeFromRegistryName(listItem.tag);
updatePartsDropDown(skinType);
PacketHandler.networkWrapper.sendToServer(new MessageClientGuiSetArmourerSkinType(skinType));
}
if (dropDownList == dropDownParts) {
String partName = dropDownParts.getListSelectedItem().tag;
ISkinPartType skinPartType = SkinTypeRegistry.INSTANCE.getSkinPartFromRegistryName(partName);
model.currentSkinPartType = skinPartType;
}
}
Aggregations