Package com.cryptomorin.xseries
Class XItemStack.Serializer
java.lang.Object
com.cryptomorin.xseries.XItemStack.Serializer
- Enclosing class:
XItemStack
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()withConfig(org.bukkit.configuration.ConfigurationSection config) withItem(org.bukkit.inventory.ItemStack item) withMiniMessage(Function<List<? extends net.kyori.adventure.text.Component>, List<String>> miniMessageHandler) withTranslator(Function<String, String> translator) voidwrite()
-
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
-
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
withItem
-
withConfig
-
withTranslator
-
withMiniMessage
@Experimental public XItemStack.Serializer withMiniMessage(Function<List<? extends net.kyori.adventure.text.Component>, List<String>> miniMessageHandler) -
writeToMap
-
copy
-
write
public void write()
-