src/main/java/de/dosmike/sponge/megamenus/api/elements/concepts/IPressable.java
public static Buttons fromNumberPress(int number) {
            if (number < 0 || number > 8)
                throw new IllegalArgumentException("Invalid NumberPress number");
            return values()[number];
        }
/** for conversion from {@link ClickInventoryEvent.NumberPress}
         * @return the corresponding Keys for the number
         * @param number the event value
         * @throws IllegalArgumentException if the number was invalid*/
for conversion from  ClickInventoryEvent.NumberPress
@return the corresponding Keys for the number
@param number the event value
@throws IllegalArgumentException if the number was invalid
for conversion from ClickInventoryEvent . NumberPress @return the corresponding Keys for the number @param number the event value @throws IllegalArgumentException if the number was invalid
public static Buttons fromNumberPress(int number) {
            if (number < 0 || number > 8)
                throw new IllegalArgumentException("Invalid NumberPress number");
            return values()[number];
        }
public static Buttons fromNumberPress ( int number ) { if ( number < 0 || number > 8 ) throw new IllegalArgumentException ( "Invalid NumberPress number" ) ; return values ( ) [ number ] ; }
for conversion from {@link ClickInventoryEvent.NumberPress}
 @return the corresponding Keys for the number
 @param number the event value
 @throws IllegalArgumentException if the number was invalid
for conversion from { @link ClickInventoryEvent . NumberPress } @return the corresponding Keys for the number @param number the event value @throws IllegalArgumentException if the number was invalid