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

20 lines
734 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;
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
}
@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
}