Class MaterialHelper

java.lang.Object
de.redstoneworld.redutilities.material.MaterialHelper

public class MaterialHelper extends Object
  • Constructor Details

    • MaterialHelper

      public MaterialHelper()
  • Method Details

    • getMaterials

      public static Set<org.bukkit.Material> getMaterials(Set<String> inputSet)
      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

      public static Set<org.bukkit.Material> getMaterials(String input)
      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