Class MaterialParser
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.config.MaterialParser
Represents a parser for materials from strings.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the action to take when a material cannot be parsed.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull MaterialParser.MaterialParserBuilderbuilder()org.bukkit.MaterialParses a material name to aMaterialobject.Set<org.bukkit.Material> Parses a material name to aMaterialobject.
-
Method Details
-
parse
-
parse
Parses a material name to aMaterialobject.- Parameters:
name- The name of the material to parse.- Returns:
- The parsed material object, or the default material if the name is null or empty.
-
builder
-