30 lines
860 B
Java
30 lines
860 B
Java
package net.minecraft.world.level.block;
|
|
|
|
import com.mojang.serialization.MapCodec;
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.world.level.BlockGetter;
|
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
|
|
public class TintedGlassBlock extends TransparentBlock {
|
|
public static final MapCodec<TintedGlassBlock> CODEC = simpleCodec(TintedGlassBlock::new);
|
|
|
|
@Override
|
|
public MapCodec<TintedGlassBlock> codec() {
|
|
return CODEC;
|
|
}
|
|
|
|
public TintedGlassBlock(BlockBehaviour.Properties properties) {
|
|
super(properties);
|
|
}
|
|
|
|
@Override
|
|
protected boolean propagatesSkylightDown(BlockState state, BlockGetter level, BlockPos pos) {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
protected int getLightBlock(BlockState state, BlockGetter level, BlockPos pos) {
|
|
return level.getMaxLightLevel();
|
|
}
|
|
}
|