Package net.lewmc.essence.core
Class UtilItem
java.lang.Object
net.lewmc.essence.core.UtilItem
The item utility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.MaterialgetMaterial(String name) Retrieves the item as a Material.booleanitemIsBlacklisted(String item) Checks if an item is blacklisted.
-
Constructor Details
-
UtilItem
Constructor for the ItemUtil class.- Parameters:
plugin- Essence - reference to the main class.
-
-
Method Details
-
getMaterial
Retrieves the item as a Material.- Parameters:
name- String - The item's name.- Returns:
- Material - The item as a material.
-
itemIsBlacklisted
Checks if an item is blacklisted.- Parameters:
item- String - The item name.- Returns:
- boolean - true/false is blacklisted?
-