2019-02-25 13:36:05 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityGeneratorLimitRemover;
|
|
|
|
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;
|
2019-10-20 22:30:49 +02:00
|
|
|
import net.minecraft.client.renderer.tileentity.TileEntityRenderer;
|
2019-02-25 13:36:05 +01:00
|
|
|
import net.minecraft.util.Tuple;
|
2019-10-20 22:30:49 +02:00
|
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
2019-02-25 13:36:05 +01:00
|
|
|
|
|
|
|
public class BlockGeneratorLimitRemover extends BlockContainerImpl implements ITESRProvider {
|
|
|
|
|
|
|
|
public BlockGeneratorLimitRemover() {
|
2019-11-04 19:08:49 +01:00
|
|
|
super("generator_limit_remover", TileEntityGeneratorLimitRemover.class, "generator_limit_remover", ModBlocks.prop(Material.ROCK).hardnessAndResistance(2F).sound(SoundType.STONE));
|
2019-02-25 13:36:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2019-10-20 22:30:49 +02:00
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
|
|
public Tuple<Class, TileEntityRenderer> getTESR() {
|
2019-02-25 13:36:05 +01:00
|
|
|
return new Tuple<>(TileEntityGeneratorLimitRemover.class, new RenderGeneratorLimitRemover());
|
|
|
|
}
|
|
|
|
}
|