Package net.glowstone.block.state

Examples of net.glowstone.block.state.GlowBanner.update()


    public void afterPlace(GlowPlayer player, GlowBlock block, ItemStack holding) {
        GlowBanner banner = (GlowBanner) block.getState();
        banner.setBase(DyeColor.getByDyeData((byte) holding.getDurability()));
        BannerMeta meta = (BannerMeta) holding.getItemMeta();
        banner.setPattern(meta.getPattern());
        banner.update();
    }

    public static List<CompoundTag> toNBT(BannerPattern pattern) {
        List<CompoundTag> patterns = new ArrayList<>();
        for (BannerPattern.BannerLayer layer : pattern.getLayers()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.