Uses of Class
com.cryptomorin.xseries.XItemStack.Deserializer
Packages that use XItemStack.Deserializer
-
Uses of XItemStack.Deserializer in com.cryptomorin.xseries
Methods in com.cryptomorin.xseries that return XItemStack.DeserializerModifier and TypeMethodDescriptionXItemStack.Deserializer.copy()XItemStack.Deserializer.copySettings()static XItemStack.DeserializerXItemStack.deserializer()Get a new instance ofXItemStack.Deserializerused for deserializing items from a configuration.@NotNull XItemStack.DeserializerXItemStack.Deserializer.fromConfig(Map<String, Object> serializedItem) If you use any other configuration system, you can provide a map instead, which automatically gets converted into aConfigurationSection.XItemStack.Deserializer.fromConfig(org.bukkit.configuration.ConfigurationSection config) The config which this item is going to be deserialized from.XItemStack.Deserializer.modifyItem(org.bukkit.inventory.ItemStack item) If an item is set, it'll modify this item instead of making a new one from the config.XItemStack.Deserializer.withMiniMessage(Function<List<String>, List<? extends net.kyori.adventure.text.Component>> miniMessageHandler) If this server implementation supports adventure API,ItemMeta.getDisplayName()andItemMeta.getLore()will be set using their respective Paper adventure API.XItemStack.Deserializer.withRestart(Consumer<Exception> restart) Restarts are a way to handleExceptionwithout terminating the process in general by providing a solution on the fly.XItemStack.Deserializer.withTranslator(Function<String, String> translator) Used forItemMeta.getDisplayName()andItemMeta.getLore()if your plugin handles them in a specific way.