NaturesAura/src/main/java/de/ellpeck/naturesaura/blocks/BlockRFConverter.java

20 lines
731 B
Java
Raw Normal View History

2019-01-26 00:34:05 +01:00
package de.ellpeck.naturesaura.blocks;
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
}
@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
}