use of riskyken.armourersWorkshop.common.inventory.ContainerMiniArmourerBuilding in project Armourers-Workshop by RiskyKen.
the class MessageClientGuiSetArmourerSkinType method onMessage.
@Override
public IMessage onMessage(MessageClientGuiSetArmourerSkinType 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.setSkinType(message.skinType);
}
if (container != null && container instanceof ContainerMiniArmourerBuilding) {
TileEntityMiniArmourer te = ((ContainerMiniArmourerBuilding) container).getTileEntity();
te.setSkinType(message.skinType);
}
return null;
}
use of riskyken.armourersWorkshop.common.inventory.ContainerMiniArmourerBuilding in project Armourers-Workshop by RiskyKen.
the class MessageClientGuiMiniArmourerCubeEdit method onMessage.
@Override
public IMessage onMessage(MessageClientGuiMiniArmourerCubeEdit message, MessageContext ctx) {
EntityPlayerMP player = ctx.getServerHandler().playerEntity;
if (player == null) {
return null;
}
Container container = player.openContainer;
if (container != null && container instanceof ContainerMiniArmourerBuilding) {
((ContainerMiniArmourerBuilding) container).updateFromClientCubeEdit(message.skinPartType, message.cube, message.remove);
}
return null;
}
Aggregations