Search in sources :

Example 1 with MessageServerMiniArmourerCubeEdit

use of riskyken.armourersWorkshop.common.network.messages.server.MessageServerMiniArmourerCubeEdit in project Armourers-Workshop by RiskyKen.

the class ContainerMiniArmourerBuilding method updateFromClientCubeEdit.

public void updateFromClientCubeEdit(ISkinPartType skinPartType, riskyken.armourersWorkshop.common.data.MiniCube cube, boolean remove) {
    ArrayList<SkinPart> skinParts = tileEntity.getSkinParts();
    // Send the cube update to all the players that have the GUI open.
    for (int i = 0; i < crafters.size(); i++) {
        ICrafting crafter = (ICrafting) crafters.get(i);
        MessageServerMiniArmourerCubeEdit message;
        message = new MessageServerMiniArmourerCubeEdit(skinPartType, cube, remove);
        PacketHandler.networkWrapper.sendTo(message, (EntityPlayerMP) crafter);
    }
    tileEntity.markDirty();
}
Also used : ICrafting(net.minecraft.inventory.ICrafting) SkinPart(riskyken.armourersWorkshop.common.skin.data.SkinPart) MessageServerMiniArmourerCubeEdit(riskyken.armourersWorkshop.common.network.messages.server.MessageServerMiniArmourerCubeEdit)

Aggregations

ICrafting (net.minecraft.inventory.ICrafting)1 MessageServerMiniArmourerCubeEdit (riskyken.armourersWorkshop.common.network.messages.server.MessageServerMiniArmourerCubeEdit)1 SkinPart (riskyken.armourersWorkshop.common.skin.data.SkinPart)1