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

CyclopsMC / IntegratedDynamics / 24417107771

14 Apr 2026 06:51PM UTC coverage: 53.983% (-0.008%) from 53.991%
24417107771

push

github

rubensworks
Add leaf particle colors for Menril Leaves

3095 of 8971 branches covered (34.5%)

Branch coverage included in aggregate %.

18909 of 31790 relevant lines covered (59.48%)

3.08 hits per line

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

80.0
/src/main/java/org/cyclops/integrateddynamics/block/BlockMenrilLeavesConfig.java
1
package org.cyclops.integrateddynamics.block;
2

3
import net.minecraft.core.BlockPos;
4
import net.minecraft.core.Direction;
5
import net.minecraft.world.level.BlockGetter;
6
import net.minecraft.world.level.block.ComposterBlock;
7
import net.minecraft.world.level.block.SoundType;
8
import net.minecraft.world.level.block.TintedParticleLeavesBlock;
9
import net.minecraft.world.level.block.state.BlockState;
10
import org.cyclops.cyclopscore.config.extendedconfig.BlockClientConfig;
11
import org.cyclops.cyclopscore.config.extendedconfig.BlockConfigCommon;
12
import org.cyclops.integrateddynamics.IntegratedDynamics;
13

14
/**
15
 * Config for the Menril Leaves.
16
 * @author rubensworks
17
 *
18
 */
19
public class BlockMenrilLeavesConfig extends BlockConfigCommon<IntegratedDynamics> {
20

21
    public BlockMenrilLeavesConfig() {
22
        super(
6✔
23
                IntegratedDynamics._instance,
24
                "menril_leaves",
25
                (eConfig, properties) -> new TintedParticleLeavesBlock(0.1F, properties
5✔
26
                        .replaceable()
2✔
27
                        .strength(0.2F)
1✔
28
                        .randomTicks()
2✔
29
                        .sound(SoundType.GRASS)
1✔
30
                        .noOcclusion()) {
7✔
31
                    @Override
32
                    public int getFireSpreadSpeed(BlockState state, BlockGetter level, BlockPos pos, Direction direction) {
33
                        return 5;
×
34
                    }
35

36
                    @Override
37
                    public int getFlammability(BlockState state, BlockGetter level, BlockPos pos, Direction direction) {
38
                        return 20;
×
39
                    }
40
                },
41
                getDefaultItemConstructor(IntegratedDynamics._instance)
1✔
42
        );
43
    }
1✔
44

45
    @Override
46
    public void onRegistryRegistered() {
47
        super.onRegistryRegistered();
2✔
48
        ComposterBlock.COMPOSTABLES.put(getItemInstance(), 0.3F);
6✔
49
    }
1✔
50

51
    @Override
52
    public BlockClientConfig<IntegratedDynamics> constructBlockClientConfig() {
53
        return new BlockMenrilLeavesClientConfig(this);
×
54
    }
55

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