Search in sources :

Example 26 with SkinPart

use of riskyken.armourersWorkshop.common.skin.data.SkinPart 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

SkinPart (riskyken.armourersWorkshop.common.skin.data.SkinPart)26 Skin (riskyken.armourersWorkshop.common.skin.data.Skin)10 EntityPlayer (net.minecraft.entity.player.EntityPlayer)8 ArrayList (java.util.ArrayList)5 IPoint3D (riskyken.armourersWorkshop.api.common.IPoint3D)5 ForgeDirection (net.minecraftforge.common.util.ForgeDirection)3 ISkinPartType (riskyken.armourersWorkshop.api.common.skin.type.ISkinPartType)3 SkinModelTexture (riskyken.armourersWorkshop.client.skin.SkinModelTexture)3 CubeMarkerData (riskyken.armourersWorkshop.common.skin.cubes.CubeMarkerData)3 Color (java.awt.Color)2 IOException (java.io.IOException)2 AbstractClientPlayer (net.minecraft.client.entity.AbstractClientPlayer)2 IRectangle3D (riskyken.armourersWorkshop.api.common.IRectangle3D)2 IEntityEquipment (riskyken.armourersWorkshop.api.common.skin.IEntityEquipment)2 Rectangle3D (riskyken.armourersWorkshop.api.common.skin.Rectangle3D)2 ISkinPartTypeTextured (riskyken.armourersWorkshop.api.common.skin.type.ISkinPartTypeTextured)2 SkinSaveException (riskyken.armourersWorkshop.common.exception.SkinSaveException)2 SkinCubeData (riskyken.armourersWorkshop.common.skin.data.SkinCubeData)2 SkinBlock (riskyken.armourersWorkshop.common.skin.type.block.SkinBlock)2 MovementType (riskyken.armourersWorkshop.common.skin.type.wings.SkinWings.MovementType)2