Class InvalidMaterial

All Implemented Interfaces:
Serializable

public class InvalidMaterial extends RuntimeException
Thrown when a material identifier from configuration cannot be resolved.
See Also:
  • Constructor Details

    • InvalidMaterial

      public InvalidMaterial(String message)
      Creates a new InvalidMaterial with the provided message.
      Parameters:
      message - details about the invalid material
  • Method Details

    • Throw

      public static org.bukkit.Material Throw(String message)
      Convenience helper that always throws this exception. Declared return type enables fluent usage inside expressions.
      Parameters:
      message - details about the invalid material
      Returns:
      never returns; always throws InvalidMaterial
      Throws:
      InvalidMaterial - always