use of com.iridium.iridiumcore.dependencies.nbtapi.NBTItem in project IridiumSkyblock by Iridium-Development.
the class IslandManager method getIslandCrystal.
public ItemStack getIslandCrystal(int amount) {
ItemStack itemStack = ItemStackUtils.makeItem(IridiumSkyblock.getInstance().getConfiguration().islandCrystal, Collections.singletonList(new Placeholder("amount", String.valueOf(amount))));
NBTItem nbtItem = new NBTItem(itemStack);
NBTCompound nbtCompound = nbtItem.getOrCreateCompound("iridiumskyblock");
nbtCompound.setInteger("islandCrystals", amount);
return nbtItem.getItem();
}
Aggregations