mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-05 04:49:10 +01:00
18 lines
668 B
Java
18 lines
668 B
Java
package de.ellpeck.naturesaura.blocks;
|
|
|
|
import de.ellpeck.naturesaura.ModConfig;
|
|
import de.ellpeck.naturesaura.NaturesAura;
|
|
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityRFConverter;
|
|
import net.minecraft.world.level.block.SoundType;
|
|
|
|
public class BlockRFConverter extends BlockContainerImpl {
|
|
|
|
public BlockRFConverter() {
|
|
super("rf_converter", BlockEntityRFConverter.class, Properties.of().sound(SoundType.STONE).strength(3));
|
|
}
|
|
|
|
@Override
|
|
public String getDescriptionId() {
|
|
return ModConfig.instance.rfConverter.get() ? super.getDescriptionId() : "block." + NaturesAura.MOD_ID + "." + this.getBaseName() + ".disabled";
|
|
}
|
|
}
|