aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/api/CITConditionContainer.java
blob: d307b1a2eb9b8b71c7e27dc3acd52770eabf7428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package shcm.shsupercm.fabric.citresewn.api;

import shcm.shsupercm.fabric.citresewn.pack.cit.CITCondition;

import java.util.function.Supplier;

public abstract class CITConditionContainer<T extends CITCondition> {
    public static final String ENTRYPOINT = "citresewn:condition";
    public final Class<T> condition;
    public final Supplier<T> createCondition;
    public final String[] aliases;

    protected CITConditionContainer(Class<T> condition, Supplier<T> createCondition, String... aliases) {
        this.condition = condition;
        this.createCondition = createCondition;
        this.aliases = aliases;
    }
}