public static < T extends IPositioned & ISized > IntSupplier bottomAlignedTo ( ISized owner , T other , int offset ) { checkNotNull ( other ) ; return ( ) -> { return other . position ( ) . y ( ) + other . size ( ) . height ( ) - owner . size ( ) . height ( ) + offset ; } ; }
Bottom aligns the owner to the other .