• 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

0.0
/src/main/java/org/cyclops/integrateddynamics/capability/path/PathElementTileMultipartTicking.java
1
package org.cyclops.integrateddynamics.capability.path;
2

3
import net.minecraft.core.Direction;
4
import org.cyclops.integrateddynamics.Capabilities;
5
import org.cyclops.integrateddynamics.api.block.cable.ICable;
6
import org.cyclops.integrateddynamics.api.network.INetwork;
7
import org.cyclops.integrateddynamics.api.network.IPartNetwork;
8
import org.cyclops.integrateddynamics.api.part.PartPos;
9
import org.cyclops.integrateddynamics.api.part.PartTarget;
10
import org.cyclops.integrateddynamics.api.path.IPathElement;
11
import org.cyclops.integrateddynamics.api.path.ISidedPathElement;
12
import org.cyclops.integrateddynamics.core.blockentity.BlockEntityMultipartTicking;
13
import org.cyclops.integrateddynamics.core.helper.NetworkHelpers;
14

15
import java.util.Set;
16

17
/**
18
 * Implementation of {@link IPathElement} for {@link BlockEntityMultipartTicking}.
19
 * @author rubensworks
20
 */
21
public class PathElementTileMultipartTicking extends PathElementTile<BlockEntityMultipartTicking> {
22

23
    public PathElementTileMultipartTicking(BlockEntityMultipartTicking tile, ICable cable) {
24
        super(tile, cable);
×
25
    }
×
26

27
    @Override
28
    public Set<ISidedPathElement> getReachableElements() {
29
        // Add the reachable path elements from the parts that provide one.
30
        Set<ISidedPathElement> pathElements = super.getReachableElements();
×
31
        INetwork network = getTile().getNetwork();
×
32
        IPartNetwork partNetwork = NetworkHelpers.getPartNetwork(network).orElse(null);
×
33
        for (Direction side : Direction.values()) {
×
34
            getTile().getPartContainer().getCapability(Capabilities.PathElement.PART, network, partNetwork, PartTarget.fromCenter(PartPos.of(getTile().getLevel(), getTile().getBlockPos(), side)))
×
35
                    .ifPresent(pathElement -> pathElements.addAll(pathElement.getReachableElements()));
×
36
        }
37
        return pathElements;
×
38
    }
39
}
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