aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/tileentity/IMachineBlockUpdateable.java
blob: b8ce51a2122e9476766d94f6b81579d753ed034e (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 gregtech.api.interfaces.tileentity;

/**
 * You are allowed to include this File in your Download, as i will not change it.
 * Simple Interface for Machines, which need my Machine Blocks for MultiBlockStructures.
 * <p/>
 * Every Machine implementing this Interface will conduct Machine updates.
 */
public interface IMachineBlockUpdateable {
    /**
     * The Machine Update, which is called when the Machine needs an Update of its Parts.
     * I suggest to wait 1-5 seconds before actually checking the Machine Parts.
     * RP-Frames could for example cause Problems when you instacheck the Machine Parts.
     */
    void onMachineBlockUpdate();

    /**
     * Should recurse?
     */
    default boolean isMachineBlockUpdateRecursive() {
        return true;
    }
}