use of riskyken.armourersWorkshop.common.inventory.ContainerArmourer in project Armourers-Workshop by RiskyKen.
the class MessageClientGuiSetArmourerSkinProps method onMessage.
@Override
public IMessage onMessage(MessageClientGuiSetArmourerSkinProps message, MessageContext ctx) {
EntityPlayerMP player = ctx.getServerHandler().playerEntity;
if (player == null) {
return null;
}
Container container = player.openContainer;
if (container != null && container instanceof ContainerArmourer) {
TileEntityArmourer te = ((ContainerArmourer) container).getTileEntity();
te.setSkinProps(message.skinProps);
}
return null;
}
Aggregations