Interface MaterialLoader


public interface MaterialLoader
Documentation: here

The MaterialLoader interface defines methods for loading an ItemStack from a configuration.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the key used to load the ItemStack.
    org.bukkit.inventory.ItemStack
    load(org.bukkit.configuration.file.YamlConfiguration configuration, String path, String materialString)
    Loads an ItemStack based on the provided configuration.
  • Method Details

    • getKey

      String getKey()
      Returns the key used to load the ItemStack.
      Returns:
      The key.
    • load

      org.bukkit.inventory.ItemStack load(org.bukkit.configuration.file.YamlConfiguration configuration, String path, String materialString)
      Loads an ItemStack based on the provided configuration.
      Parameters:
      configuration - The current configuration.
      path - The current path.
      materialString - The material as a String.
      Returns:
      The loaded ItemStack.