ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockItemViewer.java

29 lines
919 B
Java
Raw Normal View History

2016-05-08 21:09:58 +02:00
package de.ellpeck.actuallyadditions.mod.blocks;
import de.ellpeck.actuallyadditions.mod.blocks.base.BlockContainerBase;
import de.ellpeck.actuallyadditions.mod.tile.TileEntityItemViewer;
import net.minecraft.block.BlockState;
2016-05-08 21:09:58 +02:00
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.IBlockReader;
import net.minecraftforge.common.ToolType;
import javax.annotation.Nullable;
2016-05-08 21:09:58 +02:00
2019-05-02 09:10:29 +02:00
public class BlockItemViewer extends BlockContainerBase {
2016-05-08 21:09:58 +02:00
public BlockItemViewer() {
super(Properties.create(Material.ROCK)
.harvestTool(ToolType.PICKAXE)
.hardnessAndResistance(1.5f, 10.0f)
.sound(SoundType.STONE));
2016-05-08 21:09:58 +02:00
}
@Nullable
2016-05-08 21:09:58 +02:00
@Override
public TileEntity createTileEntity(BlockState state, IBlockReader world) {
2016-05-08 21:09:58 +02:00
return new TileEntityItemViewer();
}
}