minecraft-src/net/minecraft/world/level/block/TintedGlassBlock.java
2025-07-04 02:00:41 +03:00

28 lines
700 B
Java

package net.minecraft.world.level.block;
import com.mojang.serialization.MapCodec;
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 blockState) {
return false;
}
@Override
protected int getLightBlock(BlockState blockState) {
return 15;
}
}