Class MaterialHelper
java.lang.Object
de.redstoneworld.redutilities.material.MaterialHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<org.bukkit.Material> getMaterials(String input) This method returns a list of Materials based on the input string.static Set<org.bukkit.Material> getMaterials(Set<String> inputSet) This method returns a list of Materials based on the Set of input strings.
-
Constructor Details
-
MaterialHelper
public MaterialHelper()
-
-
Method Details
-
getMaterials
This method returns a list of Materials based on the Set of input strings.- Parameters:
inputSet- (Set of Strings) the input String- Returns:
- (Set of Materials) the resulted Materials
-
getMaterials
This method returns a list of Materials based on the input string. Various formats of specifications are supported here:- Material Tag starting with "#" or "tag=" - see Minecraft-Wiki Article for the Vanilla Material Tags and PaperMC Java-Doc for the Bukkit implementation
- Regex via "r="
- clean MATERIAL names with wildcards via "*"
- clean MATERIAL names
Basic-Design by Phoenix616- Parameters:
input- (String) the input String- Returns:
- (Set of Materials) the resulted Materials
-