• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CyclopsMC / IntegratedCrafting / #479011800

31 Aug 2025 01:00PM UTC coverage: 24.876% (-0.3%) from 25.162%
#479011800

push

github

rubensworks
Add Attuned Crafting Interface

1 of 277 new or added lines in 7 files covered. (0.36%)

113 existing lines in 4 files now uncovered.

750 of 3015 relevant lines covered (24.88%)

0.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/org/cyclops/integratedcrafting/GeneralConfig.java
1
package org.cyclops.integratedcrafting;
2

3
import net.minecraftforge.fml.config.ModConfig;
4
import org.cyclops.cyclopscore.config.ConfigurableProperty;
5
import org.cyclops.cyclopscore.config.extendedconfig.DummyConfig;
6
import org.cyclops.cyclopscore.tracking.Analytics;
7
import org.cyclops.cyclopscore.tracking.Versions;
8

9
/**
10
 * A config with general options for this mod.
11
 * @author rubensworks
12
 *
13
 */
14
public class GeneralConfig extends DummyConfig {
15

16
    @ConfigurableProperty(category = "core", comment = "If an anonymous mod startup analytics request may be sent to our analytics service.")
17
    public static boolean analytics = true;
×
18

19
    @ConfigurableProperty(category = "core", comment = "If the version checker should be enabled.")
20
    public static boolean versionChecker = true;
×
21

22
    @ConfigurableProperty(category = "machine", comment = "The minimal update frequency in ticks to use for crafting interfaces.", minimalValue = 1, configLocation = ModConfig.Type.SERVER)
23
    public static int minCraftingInterfaceUpdateFreq = 5;
×
24

25
    @ConfigurableProperty(category = "machine", comment = "If the crafting interface should validate recipes on insertion.", isCommandable = true, configLocation = ModConfig.Type.SERVER)
26
    public static boolean validateRecipesCraftingInterface = true;
×
27

28
    @ConfigurableProperty(category = "machine", comment = "The maximum amount of crafting jobs that could be scheduled within one crafting interface without being started", minimalValue = 1, isCommandable = true, configLocation = ModConfig.Type.SERVER)
29
    public static int maxPendingCraftingJobs = 256;
×
30

31
    @ConfigurableProperty(category = "general", comment = "The base energy usage for the crafting writer.", minimalValue = 0, configLocation = ModConfig.Type.SERVER)
32
    public static int craftingWriterBaseConsumption = 1;
×
33
    @ConfigurableProperty(category = "general", comment = "The base energy usage for the crafting interface per crafting job being processed.", minimalValue = 0, configLocation = ModConfig.Type.SERVER)
34
    public static int interfaceCraftingBaseConsumption = 5;
×
35
    @ConfigurableProperty(category = "general", comment = "The base energy usage for the attuned crafting interface per crafting job being processed.", minimalValue = 0, configLocation = ModConfig.Type.SERVER)
NEW
36
    public static int interfaceCraftingAttunedBaseConsumption = 10;
×
37

38
    @ConfigurableProperty(category = "machine", comment = "Enabling this option will log all recipe validation failures in crafting interfaces into the server logs", isCommandable = true, configLocation = ModConfig.Type.SERVER)
39
    public static boolean logRecipeValidationFailures = true;
×
40

41
    public GeneralConfig() {
42
        super(IntegratedCrafting._instance, "general");
×
43
    }
×
44

45
    @Override
46
    public void onRegistered() {
47
        if(analytics) {
×
48
            Analytics.registerMod(getMod(), Reference.GA_TRACKING_ID);
×
49
        }
50
        if(versionChecker) {
×
51
            Versions.registerMod(getMod(), IntegratedCrafting._instance, Reference.VERSION_URL);
×
52
        }
53
    }
×
54

55
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc