• 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

16.67
/src/main/java/org/cyclops/integrateddynamics/part/aspect/read/redstone/ReadRedstoneComponent.java
1
package org.cyclops.integrateddynamics.part.aspect.read.redstone;
2

3
import net.minecraft.core.Direction;
4
import org.cyclops.cyclopscore.datastructure.DimPos;
5
import org.cyclops.cyclopscore.helper.IModHelpersNeoForge;
6
import org.cyclops.integrateddynamics.Capabilities;
7
import org.cyclops.integrateddynamics.api.block.IDynamicRedstone;
8
import org.cyclops.integrateddynamics.api.part.PartTarget;
9

10
import java.util.Optional;
11

12
/**
13
 * Default component for writing redstone levels.
14
 * @author rubensworks
15
 */
16
public class ReadRedstoneComponent implements IReadRedstoneComponent {
3✔
17
    @Override
18
    public void setAllowRedstoneInput(PartTarget target, boolean allow) {
19
        DimPos dimPos = target.getCenter().getPos();
×
20
        getDynamicRedstoneBlock(dimPos, target.getCenter().getSide())
×
21
                .ifPresent(block -> block.setAllowRedstoneInput(allow));
×
22
    }
×
23

24
    @Override
25
    public Optional<IDynamicRedstone> getDynamicRedstoneBlock(DimPos dimPos, Direction side) {
26
        return IModHelpersNeoForge.get().getCapabilityHelpers().getCapability(dimPos, side, Capabilities.DynamicRedstone.BLOCK);
×
27
    }
28
}
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