Package org.spout.nbt

Examples of org.spout.nbt.CompoundTag


      enchantments = new ArrayList<CompoundTag>(((ListTag<CompoundTag>) nbtData.get("ench")).getValue());
    }
    CompoundMap map = new CompoundMap();
    map.put(new ShortTag("id", (short) enchantment.getId()));
    map.put(new ShortTag("lvl", (short) powerLevel));
    enchantments.add(new CompoundTag(null, map));
    nbtData.put(new ListTag<CompoundTag>("ench", CompoundTag.class, enchantments));
    item.setNBTData(nbtData);
    return true;
  }
View Full Code Here

TOP

Related Classes of org.spout.nbt.CompoundTag

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.