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

19 lines
668 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;
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;
2019-01-26 00:34:05 +01:00
public class BlockRFConverter extends BlockContainerImpl {
public BlockRFConverter() {
2023-07-08 12:32:27 +02:00
super("rf_converter", BlockEntityRFConverter.class, Properties.of().sound(SoundType.STONE).strength(3));
2019-01-26 00:34:05 +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";
}
2019-01-26 00:34:05 +01:00
}