package com.thebrokenrail.energonrelics.block; import com.thebrokenrail.energonrelics.block.util.SimpleBlock; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.minecraft.block.BlockState; import net.minecraft.block.Material; import net.minecraft.util.math.BlockPos; import net.minecraft.world.BlockView; public class ThermalGlassBlock extends SimpleBlock { public ThermalGlassBlock() { super(FabricBlockSettings.of(Material.STONE).requiresTool().strength(1.5f, 6.0f).nonOpaque().allowsSpawning((state, world, pos, type) -> false).solidBlock((state, world, pos) -> false).suffocates((state, world, pos) -> false)); } @Override @SuppressWarnings("deprecation") @Environment(EnvType.CLIENT) public float getAmbientOcclusionLightLevel(BlockState state, BlockView world, BlockPos pos) { return 1.0F; } @Override public boolean isTranslucent(BlockState state, BlockView world, BlockPos pos) { return true; } }