stonecutter: setup multiversion build

This commit is contained in:
Martin Prokoph
2025-11-19 23:21:49 +01:00
parent ff60cf4873
commit 084c892e44
72 changed files with 694 additions and 864 deletions

View File

@@ -0,0 +1,20 @@
package eu.midnightdust.cullleaves.mixin;
import eu.midnightdust.cullleaves.CullLeavesClient;
import net.minecraft.core.Direction;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.MangroveRootsBlock;
import net.minecraft.world.level.block.state.BlockState;
import org.spongepowered.asm.mixin.Mixin;
@Mixin(value = MangroveRootsBlock.class, priority = 1900)
public abstract class MixinMangroveRootsBlock extends Block {
public MixinMangroveRootsBlock(Properties properties) {
super(properties);
}
@Override
public boolean skipRendering(BlockState state, BlockState neighborState, Direction offset) {
return CullLeavesClient.isRootSideInvisible(neighborState);
}
}