Moves commonly used block prototypes into the library

This commit is contained in:
zontreck 2024-04-26 05:48:00 -07:00
parent b6987978d1
commit 840fa0a157
5 changed files with 120 additions and 0 deletions

View file

@ -0,0 +1,18 @@
package dev.zontreck.libzontreck.blocks;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.block.AbstractGlassBlock;
import net.minecraft.world.level.block.state.BlockState;
public class PartialTransparentBlock extends AbstractGlassBlock
{
protected PartialTransparentBlock(Properties p_48729_) {
super(p_48729_);
}
@Override
public boolean propagatesSkylightDown(BlockState p_48740_, BlockGetter p_48741_, BlockPos p_48742_) {
return true;
}
}