src/main/java/brokenlib/common/notification/Notification.java
/**
     * Repopulates parameter's values using the provided {@link NBTTagCompound}.
     * If this method is called client side, only the parameters which returns true to
     * {@link NotifParameter#shouldBeSent()} are repopulated with a value.
     * If the method is called server side, only the parameters which returns true to
     * {@link NotifParameter#canBeOverride()} are repopulated with a value.
     * @param nbt The {@link NBTTagCompound} containing the values for the concerned parameters
     * @param side The side this method is called on
     */
Repopulates parameter's values using the provided  NBTTagCompound.
If this method is called client side, only the parameters which returns true to
NotifParameter#shouldBeSent() are repopulated with a value.
If the method is called server side, only the parameters which returns true to
NotifParameter#canBeOverride() are repopulated with a value.
@param nbt The  NBTTagCompound containing the values for the concerned parameters
@param side The side this method is called on
Repopulates parameter ' s values using the provided NBTTagCompound . If this method is called client side only the parameters which returns true to NotifParameter#shouldBeSent () are repopulated with a value . If the method is called server side only the parameters which returns true to NotifParameter#canBeOverride () are repopulated with a value . @param nbt The NBTTagCompound containing the values for the concerned parameters @param side The side this method is called on
public void fromNBT(NBTTagCompound nbt, Side side) {
        if(side.isClient()) {
            parameters.stream().filter(NotifParameter::shouldBeSent).forEach(param -> param.readFromNBT(nbt));
        } else {
            parameters.stream().filter(NotifParameter::canBeOverride).forEach(param -> param.readFromNBT(nbt));
        }
    }
public void fromNBT ( NBTTagCompound nbt , Side side ) { if ( side . isClient ( ) ) { parameters . stream ( ) . filter ( NotifParameter :: shouldBeSent ) . forEach ( param -> param . readFromNBT ( nbt ) ) ; } else { parameters . stream ( ) . filter ( NotifParameter :: canBeOverride ) . forEach ( param -> param . readFromNBT ( nbt ) ) ; } }
Repopulates parameter's values using the provided {@link NBTTagCompound}.
Repopulates parameter ' s values using the provided { @link NBTTagCompound } .