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

25 lines
1 KiB
Java
Raw Normal View History

package de.ellpeck.naturesaura.blocks;
2020-01-22 01:32:26 +01:00
import de.ellpeck.naturesaura.blocks.tiles.TileEntityGeneratorLimitRemover;
2020-01-23 19:20:47 +01:00
import de.ellpeck.naturesaura.blocks.tiles.render.RenderGeneratorLimitRemover;
import de.ellpeck.naturesaura.reg.ITESRProvider;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
2020-01-23 19:20:47 +01:00
import net.minecraft.client.renderer.tileentity.TileEntityRenderer;
import net.minecraft.util.Tuple;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
2020-01-23 19:20:47 +01:00
public class BlockGeneratorLimitRemover extends BlockContainerImpl implements ITESRProvider {
public BlockGeneratorLimitRemover() {
2020-01-22 01:32:26 +01:00
super("generator_limit_remover", TileEntityGeneratorLimitRemover::new, ModBlocks.prop(Material.ROCK).hardnessAndResistance(2F).sound(SoundType.STONE));
}
2020-01-23 19:20:47 +01:00
@Override
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
public Tuple<Class, TileEntityRenderer> getTESR() {
return new Tuple<>(TileEntityGeneratorLimitRemover.class, new RenderGeneratorLimitRemover());
2020-01-23 19:20:47 +01:00
}
}