aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/IHeatingCoil.java
blob: f30145165b2878c9aff6d24842834b430b464b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package gregtech.api.interfaces;

import gregtech.api.enums.HeatingCoilLevel;
import java.util.function.Consumer;
import net.minecraft.item.ItemStack;

public interface IHeatingCoil {

    HeatingCoilLevel getCoilHeat(int meta);

    default HeatingCoilLevel getCoilHeat(ItemStack stack) {
        return getCoilHeat(stack.getItemDamage());
    }

    void setOnCoilCheck(Consumer<IHeatingCoil> callback);

    Consumer<IHeatingCoil> getOnCoilCheck();
}