Package org.sgrewritten.stargate.util
Class ButtonHelper
java.lang.Object
org.sgrewritten.stargate.util.ButtonHelper
A helper class for dealing with buttons
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.Material
getButtonMaterial
(org.bukkit.Location locationToGenerateButton) Gets the button material to use for this gatestatic boolean
isButton
(org.bukkit.Material material) Checks whether the given material is a valid button
-
Method Details
-
isButton
public static boolean isButton(org.bukkit.Material material) Checks whether the given material is a valid button- Parameters:
material
-The material to check
- Returns:
True if the material is a button
-
getButtonMaterial
public static org.bukkit.Material getButtonMaterial(org.bukkit.Location locationToGenerateButton) Gets the button material to use for this gate- Parameters:
locationToGenerateButton
-The location of the button to be generated
- Returns:
The button material to use for this gate
-