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

CyclopsMC / IntegratedDynamics / 20210191346

14 Dec 2025 03:32PM UTC coverage: 19.514% (-33.5%) from 53.061%
20210191346

push

github

rubensworks
Remove deprecations

663 of 8728 branches covered (7.6%)

Branch coverage included in aggregate %.

6786 of 29445 relevant lines covered (23.05%)

1.09 hits per line

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

60.0
/src/main/java/org/cyclops/integrateddynamics/part/PartTypeInventoryReader.java
1
package org.cyclops.integrateddynamics.part;
2

3
import com.google.common.collect.Lists;
4
import org.cyclops.integrateddynamics.GeneralConfig;
5
import org.cyclops.integrateddynamics.api.part.aspect.IAspect;
6
import org.cyclops.integrateddynamics.core.part.aspect.AspectRegistry;
7
import org.cyclops.integrateddynamics.core.part.read.PartStateReaderBase;
8
import org.cyclops.integrateddynamics.core.part.read.PartTypeReadBase;
9
import org.cyclops.integrateddynamics.part.aspect.Aspects;
10

11
/**
12
 * An inventory reader part.
13
 * @author rubensworks
14
 */
15
public class PartTypeInventoryReader extends PartTypeReadBase<PartTypeInventoryReader, PartStateReaderBase<PartTypeInventoryReader>> {
16

17
    public PartTypeInventoryReader(String name) {
18
        super(name);
3✔
19
        AspectRegistry.getInstance().register(this, Lists.<IAspect>newArrayList(
46✔
20
                Aspects.Read.Inventory.BOOLEAN_FULL,
21
                Aspects.Read.Inventory.BOOLEAN_EMPTY,
22
                Aspects.Read.Inventory.BOOLEAN_NONEMPTY,
23
                Aspects.Read.Inventory.BOOLEAN_APPLICABLE,
24
                Aspects.Read.Inventory.INTEGER_COUNT,
25
                Aspects.Read.Inventory.INTEGER_SLOTS,
26
                Aspects.Read.Inventory.INTEGER_SLOTSFILLED,
27
                Aspects.Read.Inventory.DOUBLE_FILLRATIO,
28
                Aspects.Read.Inventory.LIST_ITEMSTACKS,
29
                Aspects.Read.Inventory.OBJECT_ITEM_STACK_SLOT
30
        ));
31
    }
1✔
32

33
    @Override
34
    public PartStateReaderBase<PartTypeInventoryReader> constructDefaultState() {
35
        return new PartStateReaderBase<PartTypeInventoryReader>();
×
36
    }
37

38
    @Override
39
    public int getConsumptionRate(PartStateReaderBase<PartTypeInventoryReader> state) {
40
        return GeneralConfig.inventoryReaderBaseConsumption;
×
41
    }
42

43
}
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

© 2026 Coveralls, Inc