src/main/java/org/cyclops/integrateddynamics/core/helper/PartHelpers.java
public static void writePartsToNBT(BlockPos pos, NBTTagCompound tag, Map<EnumFacing, PartStateHolder<?, ?>> partData) {
        NBTTagList partList = new NBTTagList();
        for(Map.Entry<EnumFacing, PartHelpers.PartStateHolder<?, ?>> entry : partData.entrySet()) {
            NBTTagCompound partTag = new NBTTagCompound();
            if(writePartToNBT(pos, partTag, Pair.<EnumFacing, PartStateHolder<?, ?>>of(entry.getKey(), entry.getValue()))) {
                partList.appendTag(partTag);
            }
        }
        tag.setTag("parts", partList);
    }
/**
     * Write the given parts to nbt.
     * @param pos The position of the part, used for error reporting.
     * @param tag The tag to write to.
     * @param partData The part data.
     */
Write the given parts to nbt.
@param pos The position of the part, used for error reporting.
@param tag The tag to write to.
@param partData The part data.
Write the given parts to nbt . @param pos The position of the part used for error reporting . @param tag The tag to write to . @param partData The part data .
public static void writePartsToNBT(BlockPos pos, NBTTagCompound tag, Map<EnumFacing, PartStateHolder<?, ?>> partData) {
        NBTTagList partList = new NBTTagList();
        for(Map.Entry<EnumFacing, PartHelpers.PartStateHolder<?, ?>> entry : partData.entrySet()) {
            NBTTagCompound partTag = new NBTTagCompound();
            if(writePartToNBT(pos, partTag, Pair.<EnumFacing, PartStateHolder<?, ?>>of(entry.getKey(), entry.getValue()))) {
                partList.appendTag(partTag);
            }
        }
        tag.setTag("parts", partList);
    }
public static void writePartsToNBT ( BlockPos pos , NBTTagCompound tag , Map < EnumFacing , PartStateHolder < ? , ? > > partData ) { NBTTagList partList = new NBTTagList ( ) ; for ( Map . Entry < EnumFacing , PartHelpers . PartStateHolder < ? , ? > > entry : partData . entrySet ( ) ) { NBTTagCompound partTag = new NBTTagCompound ( ) ; if ( writePartToNBT ( pos , partTag , Pair . < EnumFacing , PartStateHolder < ? , ? > > of ( entry . getKey ( ) , entry . getValue ( ) ) ) ) { partList . appendTag ( partTag ) ; } } tag . setTag ( "parts" , partList ) ; }
Write the given parts to nbt.
Write the given parts to nbt .