Class GiveMaterialManager

java.lang.Object
com.zetaplugins.essentialz.features.GiveMaterialManager

public class GiveMaterialManager extends Object
  • Constructor Details

    • GiveMaterialManager

      public GiveMaterialManager(EssentialZ plugin)
  • Method Details

    • getMaterialByKey

      @Nullable public @Nullable org.bukkit.Material getMaterialByKey(String key)
      Get a Material by its key from the materials config. If not found, try to parse the key as a Material name.
      Parameters:
      key - The key to look up
      Returns:
      The Material, or null if not found
    • getPossibleMaterials

      public List<String> getPossibleMaterials()
      Get a list of all possible material keys/names from the materials config and vanilla materials,
      Returns:
      List of possible material keys/names