public class ItemStackReader extends Object
ItemStackBuilders from config files.| Modifier and Type | Class and Description |
|---|---|
static interface |
ItemStackReader.VariableReplacer
Function for replacing variables in item names and lores.
|
| Modifier and Type | Field and Description |
|---|---|
static ItemStackReader |
DEFAULT
The default helper
ItemStackReader implementation. |
| Modifier | Constructor and Description |
|---|---|
protected |
ItemStackReader() |
| Modifier and Type | Method and Description |
|---|---|
protected OptionalInt |
parseData(org.bukkit.configuration.ConfigurationSection config) |
protected Optional<List<String>> |
parseLore(org.bukkit.configuration.ConfigurationSection config) |
protected org.bukkit.Material |
parseMaterial(org.bukkit.configuration.ConfigurationSection config) |
protected org.bukkit.Material |
parseMaterial(String name) |
protected Optional<String> |
parseName(org.bukkit.configuration.ConfigurationSection config) |
ItemStackBuilder |
read(org.bukkit.configuration.ConfigurationSection config)
Reads an
ItemStackBuilder from the given config. |
ItemStackBuilder |
read(org.bukkit.configuration.ConfigurationSection config,
ItemStackReader.VariableReplacer variableReplacer)
Reads an
ItemStackBuilder from the given config. |
public static final ItemStackReader DEFAULT
ItemStackReader implementation.public final ItemStackBuilder read(org.bukkit.configuration.ConfigurationSection config)
ItemStackBuilder from the given config.config - the config to read frompublic ItemStackBuilder read(org.bukkit.configuration.ConfigurationSection config, ItemStackReader.VariableReplacer variableReplacer)
ItemStackBuilder from the given config.config - the config to read fromvariableReplacer - the variable replacer to use to replace variables in the name and lore.protected org.bukkit.Material parseMaterial(org.bukkit.configuration.ConfigurationSection config)
protected org.bukkit.Material parseMaterial(String name)
protected OptionalInt parseData(org.bukkit.configuration.ConfigurationSection config)
protected Optional<String> parseName(org.bukkit.configuration.ConfigurationSection config)
Copyright © 2022. All rights reserved.