2019-01-26 00:34:05 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
2021-01-11 23:39:19 +01:00
|
|
|
import de.ellpeck.naturesaura.ModConfig;
|
|
|
|
import de.ellpeck.naturesaura.NaturesAura;
|
2021-12-04 15:40:09 +01:00
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityRFConverter;
|
2021-12-15 16:24:53 +01:00
|
|
|
import net.minecraft.world.level.block.SoundType;
|
|
|
|
import net.minecraft.world.level.material.Material;
|
2019-01-26 00:34:05 +01:00
|
|
|
|
|
|
|
public class BlockRFConverter extends BlockContainerImpl {
|
|
|
|
|
|
|
|
public BlockRFConverter() {
|
2021-12-19 15:32:45 +01:00
|
|
|
super("rf_converter", BlockEntityRFConverter.class, Properties.of(Material.STONE).sound(SoundType.STONE).strength(3));
|
2019-01-26 00:34:05 +01:00
|
|
|
}
|
2021-01-11 23:39:19 +01:00
|
|
|
|
|
|
|
@Override
|
2021-12-15 16:24:53 +01:00
|
|
|
public String getDescriptionId() {
|
|
|
|
return ModConfig.instance.rfConverter.get() ? super.getDescriptionId() : "block." + NaturesAura.MOD_ID + "." + this.getBaseName() + ".disabled";
|
2021-01-11 23:39:19 +01:00
|
|
|
}
|
2019-01-26 00:34:05 +01:00
|
|
|
}
|