Class XItemStack.Serializer
java.lang.Object
com.cryptomorin.xseries.XItemStack.Serializer
- Enclosing class:
XItemStack
Use
XItemStack.serializer() to use this class.- Version:
- 9.0.0
- Author:
- Crypto Morin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copies all properties of this handler, including the item.Copies all properties of this handler without the item.fromItem(org.bukkit.inventory.ItemStack item) voidtoConfig(org.bukkit.configuration.ConfigurationSection config) withMiniMessage(Function<List<? extends net.kyori.adventure.text.Component>, List<String>> miniMessageHandler) withTranslator(Function<String, String> translator)
-
Field Details
-
item
@Nullable protected @Nullable org.bukkit.inventory.ItemStack item -
config
@Nullable protected @Nullable org.bukkit.configuration.ConfigurationSection config -
translator
-
meta
protected org.bukkit.inventory.meta.ItemMeta meta
-
-
Method Details
-
fromItem
-
toConfig
-
withTranslator
-
withMiniMessage
@Experimental public XItemStack.Serializer withMiniMessage(Function<List<? extends net.kyori.adventure.text.Component>, List<String>> miniMessageHandler) -
writeToMap
-
copy
Copies all properties of this handler, including the item. -
copySettings
Copies all properties of this handler without the item. -
serialize
public void serialize()
-