src/main/java/h1z1/input/InputProvider.java
public List<InputButton> takeButtonBuffer(){
        List<InputButton> temp = new ArrayList<>(buttonBuffer);
        buttonBuffer.clear();
        return  temp;
    }
/**
     * Empty the button buffer and return all its contents.
     * @return the buttons that have been pressed since this method was last called.
     */
Empty the button buffer and return all its contents.
@return the buttons that have been pressed since this method was last called.
Empty the button buffer and return all its contents . @return the buttons that have been pressed since this method was last called .
public List<InputButton> takeButtonBuffer(){
        List<InputButton> temp = new ArrayList<>(buttonBuffer);
        buttonBuffer.clear();
        return  temp;
    }
public List < InputButton > takeButtonBuffer ( ) { List < InputButton > temp = new ArrayList < > ( buttonBuffer ) ; buttonBuffer . clear ( ) ; return temp ; }
Empty the button buffer and return all its contents.
Empty the button buffer and return all its contents .