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

3
import net.minecraft.core.registries.Registries;
4
import net.minecraft.world.level.block.state.BlockState;
5
import org.cyclops.cyclopscore.helper.IModHelpers;
6
import org.cyclops.integrateddynamics.api.block.IFacadeable;
7
import org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext;
8
import org.cyclops.integrateddynamics.core.blockentity.BlockEntityMultipartTicking;
9

10
import javax.annotation.Nullable;
11

12
/**
13
 * Default implementation of {@link IFacadeable}.
14
 * @author rubensworks
15
 */
16
public class FacadeableTileMultipartTicking implements IFacadeable {
17

18
    private final BlockEntityMultipartTicking tile;
19

20
    public FacadeableTileMultipartTicking(BlockEntityMultipartTicking tile) {
×
21
        this.tile = tile;
×
22
    }
×
23

24
    @Override
25
    public boolean hasFacade() {
26
        return tile.getFacadeBlockTag() != null;
×
27
    }
28

29
    @Override
30
    public BlockState getFacade() {
31
        if(!hasFacade()) {
×
32
            return null;
×
33
        }
34
        return IModHelpers.get().getBlockHelpers().deserializeBlockState(ValueDeseralizationContext.of(tile.getLevel()).holderLookupProvider().lookupOrThrow(Registries.BLOCK), tile.getFacadeBlockTag());
×
35
    }
36

37
    @Override
38
    public void setFacade(@Nullable BlockState blockState) {
39
        if(blockState == null) {
×
40
            tile.setFacadeBlockTag(null);
×
41
        } else {
42
            tile.setFacadeBlockTag(IModHelpers.get().getBlockHelpers().serializeBlockState(blockState));
×
43
        }
44
        tile.setForceLightCheckAtClient(true);
×
45
        tile.setChanged();
×
46
        tile.sendUpdate();
×
47
    }
×
48
}
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