src/main/java/org/cyclops/integrateddynamics/core/helper/PartHelpers.java
public static Pair<EnumFacing, ? extends PartStateHolder<?, ?>> readPartFromNBT(@Nullable INetwork network, BlockPos pos, NBTTagCompound partTag) {
        Pair<EnumFacing, IPartType> partData = readPartTypeFromNBT(network, pos, partTag);
        if(partData != null) {
            IPartState partState = partData.getValue().fromNBT(partTag);
            return Pair.of(partData.getKey(), PartStateHolder.of(partData.getValue(), partState));
        }
        return null;
    }
/**
     * Read part data from nbt.
     * @param network The network the part will be part of.
     * @param pos The position of the part, used for error reporting.
     * @param partTag The tag to read from.
     * @return The part data.
     */
Read part data from nbt.
@param network The network the part will be part of.
@param pos The position of the part, used for error reporting.
@param partTag The tag to read from.
@return The part data.
Read part data from nbt . @param network The network the part will be part of . @param pos The position of the part used for error reporting . @param partTag The tag to read from . @return The part data .
public static Pair<EnumFacing, ? extends PartStateHolder<?, ?>> readPartFromNBT(@Nullable INetwork network, BlockPos pos, NBTTagCompound partTag) {
        Pair<EnumFacing, IPartType> partData = readPartTypeFromNBT(network, pos, partTag);
        if(partData != null) {
            IPartState partState = partData.getValue().fromNBT(partTag);
            return Pair.of(partData.getKey(), PartStateHolder.of(partData.getValue(), partState));
        }
        return null;
    }
public static Pair < EnumFacing , ? extends PartStateHolder < ? , ? > > readPartFromNBT ( @ Nullable INetwork network , BlockPos pos , NBTTagCompound partTag ) { Pair < EnumFacing , IPartType > partData = readPartTypeFromNBT ( network , pos , partTag ) ; if ( partData != null ) { IPartState partState = partData . getValue ( ) . fromNBT ( partTag ) ; return Pair . of ( partData . getKey ( ) , PartStateHolder . of ( partData . getValue ( ) , partState ) ) ; } return null ; }
Read part data from nbt.
Read part data from nbt .