• 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/partcontainer/PartContainerTileMultipartTicking.java
1
package org.cyclops.integrateddynamics.capability.partcontainer;
2

3
import net.minecraft.core.BlockPos;
4
import net.minecraft.core.Direction;
5
import net.minecraft.world.entity.player.Player;
6
import net.minecraft.world.level.Level;
7
import net.minecraft.world.phys.shapes.CollisionContext;
8
import org.cyclops.integrateddynamics.api.network.INetwork;
9
import org.cyclops.integrateddynamics.api.part.IPartContainer;
10
import org.cyclops.integrateddynamics.block.BlockCable;
11
import org.cyclops.integrateddynamics.core.block.BlockRayTraceResultComponent;
12
import org.cyclops.integrateddynamics.core.blockentity.BlockEntityMultipartTicking;
13

14
import javax.annotation.Nullable;
15

16
/**
17
 * Implementation of an {@link IPartContainer} for a part entity.
18
 * @author rubensworks
19
 */
20
public class PartContainerTileMultipartTicking extends PartContainerDefault {
21

22
    private final BlockEntityMultipartTicking tile;
23

24
    public PartContainerTileMultipartTicking(BlockEntityMultipartTicking tile) {
×
25
        this.tile = tile;
×
26
    }
×
27

28
    protected BlockEntityMultipartTicking getTile() {
29
        return tile;
×
30
    }
31

32
    @Override
33
    protected void setChanged() {
34
        getTile().setChanged();
×
35
    }
×
36

37
    @Override
38
    protected void sendUpdate() {
39
        getTile().sendUpdate();
×
40
    }
×
41

42
    @Override
43
    protected Level getLevel() {
44
        return getTile().getLevel();
×
45
    }
46

47
    @Override
48
    protected BlockPos getPos() {
49
        return getTile().getBlockPos();
×
50
    }
51

52
    @Override
53
    protected INetwork getNetwork() {
54
        return getTile().getNetwork();
×
55
    }
56

57
    @Nullable
58
    @Override
59
    public Direction getWatchingSide(Level world, BlockPos pos, Player player) {
60
        BlockRayTraceResultComponent rayTraceResult = ((BlockCable) world.getBlockState(pos).getBlock())
×
61
                .getSelectedShape(world.getBlockState(pos), world, pos, CollisionContext.of(player))
×
62
                .rayTrace(pos, player);
×
63
        if(rayTraceResult != null) {
×
64
            return rayTraceResult.getComponent().getRaytraceDirection();
×
65
        }
66
        return null;
×
67
    }
68
}
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