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;
|
2020-01-22 01:32:26 +01:00
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityRFConverter;
|
2019-01-26 00:34:05 +01:00
|
|
|
import net.minecraft.block.SoundType;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
|
|
|
public class BlockRFConverter extends BlockContainerImpl {
|
|
|
|
|
|
|
|
public BlockRFConverter() {
|
2020-01-22 01:32:26 +01:00
|
|
|
super("rf_converter", TileEntityRFConverter::new, Properties.create(Material.ROCK).sound(SoundType.STONE).hardnessAndResistance(3));
|
2019-01-26 00:34:05 +01:00
|
|
|
}
|
2021-01-11 23:39:19 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getTranslationKey() {
|
|
|
|
return ModConfig.instance.rfConverter.get() ? super.getTranslationKey() : "block." + NaturesAura.MOD_ID + "." + this.getBaseName() + ".disabled";
|
|
|
|
}
|
2019-01-26 00:34:05 +01:00
|
|
|
}
|