Package io.github.bakedlibs.dough.items
Class ItemMetaSnapshot
java.lang.Object
io.github.bakedlibs.dough.items.ItemMetaSnapshot
This is an immutable version of ItemMeta.
Use this class to optimize your ItemStack#getItemMeta() calls by returning
a field of this immutable copy.
This does not support PersistentDataContainer at the moment.
- Author:
- TheBusyBiscuit
-
Constructor Summary
ConstructorsConstructorDescriptionItemMetaSnapshot(Supplier<ItemMeta> supplier) ItemMetaSnapshot(ItemStack item) ItemMetaSnapshot(ItemMeta meta) -
Method Summary
-
Constructor Details
-
ItemMetaSnapshot
-
ItemMetaSnapshot
-
ItemMetaSnapshot
-
-
Method Details
-
getDisplayName
-
getLore
-
getCustomModelData
-
getItemFlags
-
getEnchantments
-
isSimilar
-
isSimilar
-