Class ButtonHelper

java.lang.Object
org.sgrewritten.stargate.util.ButtonHelper

public final class ButtonHelper extends Object
A helper class for dealing with buttons
  • 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