src/main/java/org/cyclops/integrateddynamics/core/helper/PartHelpers.java
public static boolean addPart(World world, BlockPos pos, EnumFacing side, IPartType partType, ItemStack itemStack) {
        IPartContainer partContainer = getPartContainer(world, pos, side);
        if(partContainer.canAddPart(side, partType)) {
            if(!world.isRemote) {
                partContainer.setPart(side, partType, partType.getState(itemStack));
            }
            return true;
        }
        return false;
    }
/**
     * Add a part to the given side with the part state in the given item.
     * @param world The world.
     * @param pos The position of the container.
     * @param side The side.
     * @param partType The part type.
     * @param itemStack The item holding the part state.
     * @return If the part was added.
     */
Add a part to the given side with the part state in the given item.
@param world The world.
@param pos The position of the container.
@param side The side.
@param partType The part type.
@param itemStack The item holding the part state.
@return If the part was added.
Add a part to the given side with the part state in the given item . @param world The world . @param pos The position of the container . @param side The side . @param partType The part type . @param itemStack The item holding the part state . @return If the part was added .
public static boolean addPart(World world, BlockPos pos, EnumFacing side, IPartType partType, ItemStack itemStack) {
        IPartContainer partContainer = getPartContainer(world, pos, side);
        if(partContainer.canAddPart(side, partType)) {
            if(!world.isRemote) {
                partContainer.setPart(side, partType, partType.getState(itemStack));
            }
            return true;
        }
        return false;
    }
public static boolean addPart ( World world , BlockPos pos , EnumFacing side , IPartType partType , ItemStack itemStack ) { IPartContainer partContainer = getPartContainer ( world , pos , side ) ; if ( partContainer . canAddPart ( side , partType ) ) { if ( ! world . isRemote ) { partContainer . setPart ( side , partType , partType . getState ( itemStack ) ) ; } return true ; } return false ; }
Add a part to the given side with the part state in the given item.
Add a part to the given side with the part state in the given item .