-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathUtilAEMachines.java
More file actions
55 lines (47 loc) · 2.88 KB
/
UtilAEMachines.java
File metadata and controls
55 lines (47 loc) · 2.88 KB
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
52
53
54
55
package net.neganote.gtutilities.common.machine;
import com.gregtechceu.gtceu.GTCEu;
import com.gregtechceu.gtceu.api.data.RotationState;
import com.gregtechceu.gtceu.api.machine.MachineDefinition;
import com.gregtechceu.gtceu.api.machine.multiblock.PartAbility;
import net.minecraft.network.chat.Component;
import net.neganote.gtutilities.config.UtilConfig;
import net.neganote.gtutilities.integration.ae2.machine.ExpandedPatternBufferPartMachine;
import net.neganote.gtutilities.integration.ae2.machine.ExpandedPatternBufferProxyPartMachine;
import static com.gregtechceu.gtceu.api.GTValues.ZPM;
import static net.neganote.gtutilities.GregTechModernUtilities.REGISTRATE;
public class UtilAEMachines {
public static MachineDefinition EXPANDED_ME_PATTERN_BUFFER = null;
public static MachineDefinition EXPANDED_ME_PATTERN_BUFFER_PROXY = null;
static {
if (UtilConfig.INSTANCE.features.expandedBuffersEnabled && GTCEu.Mods.isAE2Loaded() || GTCEu.isDataGen()) {
EXPANDED_ME_PATTERN_BUFFER = REGISTRATE
.machine("expanded_me_pattern_buffer", ExpandedPatternBufferPartMachine::new)
.tier(ZPM)
.rotationState(RotationState.ALL)
.abilities(PartAbility.IMPORT_ITEMS, PartAbility.IMPORT_FLUIDS, PartAbility.EXPORT_FLUIDS,
PartAbility.EXPORT_ITEMS)
.colorOverlayTieredHullModel(GTCEu.id("block/overlay/appeng/me_buffer_hatch"))
.langValue("Expanded ME Pattern Buffer")
.tooltips(
Component.translatable("block.gtmutils.pattern_buffer.desc.0"),
Component.translatable("block.gtceu.pattern_buffer.desc.1"),
Component.translatable("block.gtmutils.pattern_buffer.desc.2"),
Component.translatable("gtceu.part_sharing.enabled"))
.register();
EXPANDED_ME_PATTERN_BUFFER_PROXY = REGISTRATE
.machine("expanded_me_pattern_buffer_proxy", ExpandedPatternBufferProxyPartMachine::new)
.tier(ZPM)
.rotationState(RotationState.ALL)
.abilities(PartAbility.IMPORT_ITEMS, PartAbility.IMPORT_FLUIDS, PartAbility.EXPORT_FLUIDS,
PartAbility.EXPORT_ITEMS)
.colorOverlayTieredHullModel(GTCEu.id("block/overlay/appeng/me_buffer_hatch_proxy"))
.langValue("Expanded ME Pattern Buffer Proxy")
.tooltips(
Component.translatable("block.gtmutils.pattern_buffer_proxy.desc.0"),
Component.translatable("block.gtceu.pattern_buffer_proxy.desc.2"),
Component.translatable("gtceu.part_sharing.enabled"))
.register();
}
}
public static void init() {}
}