glass glow pane
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package ovh.glitchlabs.ornamentum.blocks;
|
||||
|
||||
import net.minecraft.world.level.block.IronBarsBlock;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.core.Direction;
|
||||
|
||||
public class GlowGlassPaneBlock extends IronBarsBlock {
|
||||
public GlowGlassPaneBlock(BlockBehaviour.Properties properties) {
|
||||
super(properties);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) {
|
||||
return adjacentBlockState.getBlock() instanceof GlowGlassPaneBlock || super.skipRendering(state, adjacentBlockState, side);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user