src/main/java/brokenlib/common/notification/ServerNotificationManager.java
/**
     * Used to data persistence. It saves all the notifications in a NBTTagCompound.
     * @return the serialized manager
     */
Used to data persistence. It saves all the notifications in a NBTTagCompound.
@return the serialized manager
Used to data persistence . It saves all the notifications in a NBTTagCompound . @return the serialized manager
public NBTTagCompound saveToNBT() {
        NBTTagCompound nbt = new NBTTagCompound();
        NBTTagList list = new NBTTagList();
        this.notifications.values().forEach(n -> list.appendTag(n.toNBT()));
        nbt.setTag("notifications", list);
        return nbt;
    }
public NBTTagCompound saveToNBT ( ) { NBTTagCompound nbt = new NBTTagCompound ( ) ; NBTTagList list = new NBTTagList ( ) ; this . notifications . values ( ) . forEach ( n -> list . appendTag ( n . toNBT ( ) ) ) ; nbt . setTag ( "notifications" , list ) ; return nbt ; }
Used to data persistence.
Used to data persistence .