Package net.canarymod.api.nbt

Examples of net.canarymod.api.nbt.StringTag


        boolean success = true;
        for (String page : pages) {
            if (page == null) {
                continue;
            }
            StringTag toAdd = PAGE_TITLE_AUTHOR.copy();
            toAdd.setName("page" + PAGES_TAG.size());
            toAdd.setValue(correctPage(page));
            success &= book.getDataTag().getListTag("pages").add(toAdd);
        }
        return success;
    }
View Full Code Here


        boolean success = true;
        for (String page : pages) {
            if (page == null) {
                continue;
            }
            StringTag toAdd = PAGE_TITLE_AUTHOR.copy();
            toAdd.setName("page" + PAGES_TAG.size());
            toAdd.setValue(correctPage(page));
            success &= pages_to_set.add(toAdd);
        }
        book.getDataTag().put("pages", pages_to_set);
        return success;
    }
View Full Code Here

TOP

Related Classes of net.canarymod.api.nbt.StringTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.