aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/library/KeyBindFunction.java
blob: e15caa70af9f4a749de4684009a767bda9ef3d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package me.shedaniel.library;

import java.util.function.Function;

public abstract class KeyBindFunction {
    
    public KeyBindFunction(int key) {
        this.key = key;
    }
    
    private int key;
    
    public void setKey(int key) {
        this.key = key;
    }
    
    public int getKey() {
        return key;
    }
    
    public abstract boolean apply(int key);
    
}