1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
package gregtech.api.multitileentity.interfaces;
import java.util.UUID;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import net.minecraft.util.ChunkCoordinates;
import net.minecraftforge.common.util.ForgeDirection;
import gregtech.api.enums.InventoryType;
import gregtech.api.gui.GUIHost;
import gregtech.api.logic.FluidInventoryLogic;
import gregtech.api.logic.ItemInventoryLogic;
import gregtech.api.logic.interfaces.FluidInventoryLogicHost;
import gregtech.api.logic.interfaces.ItemInventoryLogicHost;
import gregtech.api.logic.interfaces.PowerLogicHost;
import gregtech.api.multitileentity.enums.MultiTileCasingPurpose;
public interface IMultiBlockController
extends IMultiTileEntity, FluidInventoryLogicHost, ItemInventoryLogicHost, UpgradableMuTE, PowerLogicHost, GUIHost {
boolean checkStructure(boolean aForceReset);
/** Set the structure as having changed, and trigger an update */
void onStructureChange();
@Override
ChunkCoordinates getCoords();
void registerCoveredPartOnSide(final ForgeDirection side, IMultiBlockPart part);
void unregisterCoveredPartOnSide(final ForgeDirection side, IMultiBlockPart part);
void registerCaseWithPurpose(MultiTileCasingPurpose purpose, IMultiBlockPart part);
void unregisterCaseWithPurpose(MultiTileCasingPurpose purpose, IMultiBlockPart part);
UUID registerItemInventory(int slots, int tier, @Nonnull InventoryType type, boolean isUpgradeInventory);
ItemInventoryLogic unregisterItemInventory(@Nonnull UUID id, @Nonnull InventoryType type);
void changeItemInventoryDisplayName(@Nonnull UUID id, @Nullable String displayName, @Nonnull InventoryType type);
UUID registerFluidInventory(int tanks, long capacity, int tier, @Nonnull InventoryType type,
boolean isUpgradeInventory);
FluidInventoryLogic unregisterFluidInventory(@Nonnull UUID id, @Nonnull InventoryType type);
void changeFluidInventoryDisplayName(@Nonnull UUID id, @Nullable String displayName, @Nonnull InventoryType type);
}
|