aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/library/KeyBindFunction.java
blob: 4243d743354249e0f2d7fe32beb30d9aa27b5deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}