Package com.cryptomorin.xseries
Class XItemStack.Deserializer
java.lang.Object
com.cryptomorin.xseries.XItemStack.Deserializer
- Enclosing class:
XItemStack
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()@NotNull XItemStack.Deserializerorg.bukkit.inventory.ItemStackread()withConfig(org.bukkit.configuration.ConfigurationSection config) withItem(org.bukkit.inventory.ItemStack item) If an item is set, it'll modify this item instead of making a new one from the config.withMiniMessage(Function<List<String>, List<? extends net.kyori.adventure.text.Component>> miniMessageHandler) withRestart(Consumer<Exception> restart) 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
-
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
Method Details
-
withItem
If an item is set, it'll modify this item instead of making a new one from the config. -
withConfig
-
withTranslator
-
withRestart
-
withMiniMessage
@Experimental public XItemStack.Deserializer withMiniMessage(Function<List<String>, List<? extends net.kyori.adventure.text.Component>> miniMessageHandler) -
copy
-
fromMap
-
read
public org.bukkit.inventory.ItemStack read()
-