Module gomint.api

Interface BlockWoodenButton

  • All Superinterfaces:
    Block

    public interface BlockWoodenButton
    extends Block
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • isPressed

        boolean isPressed()
        Get the state of this button
        Returns:
        true when currently pressed, false otherwise
      • press

        void press()
        Press the button (it will release after 1 second)
      • getAttachedFace

        BlockFace getAttachedFace()
        Get the attached facing which has been used to attach this button to a block
        Returns:
        attached face
      • setAttachedFace

        void setAttachedFace​(BlockFace face)
        Set the attached facing of this button
        Parameters:
        face - which is attached to a block
      • getWoodType

        WoodType getWoodType()
        Get the type of wood from which this button has been made
        Returns:
        type of wood
      • setWoodType

        void setWoodType​(WoodType woodType)
        Set the type of wood for this button
        Parameters:
        woodType - type of wood