src/main/java/de/dosmike/sponge/megamenus/api/elements/concepts/ISizeable.java
default boolean containsPosition(SlotPos pos) {
        int maxX = getPosition().getX()+getWidth()-1;
        int maxY = getPosition().getY()+getHeight()-1;
        return pos.getX() >= getPosition().getX() && pos.getX() <= maxX &&
                pos.getY() >= getPosition().getY() && pos.getY() <= maxY;
    }
/** checks if the specified position is inside this ISizeable
     * @return true if pos is inside this element */
checks if the specified position is inside this ISizeable
@return true if pos is inside this element
checks if the specified position is inside this ISizeable @return true if pos is inside this element
default boolean containsPosition(SlotPos pos) {
        int maxX = getPosition().getX()+getWidth()-1;
        int maxY = getPosition().getY()+getHeight()-1;
        return pos.getX() >= getPosition().getX() && pos.getX() <= maxX &&
                pos.getY() >= getPosition().getY() && pos.getY() <= maxY;
    }
default boolean containsPosition ( SlotPos pos ) { int maxX = getPosition ( ) . getX ( ) + getWidth ( ) - 1 ; int maxY = getPosition ( ) . getY ( ) + getHeight ( ) - 1 ; return pos . getX ( ) >= getPosition ( ) . getX ( ) && pos . getX ( ) <= maxX && pos . getY ( ) >= getPosition ( ) . getY ( ) && pos . getY ( ) <= maxY ; }
checks if the specified position is inside this ISizeable
 @return true if pos is inside this element
checks if the specified position is inside this ISizeable @return true if pos is inside this element