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;
|
2020-09-08 00:46:45 +02:00
|
|
|
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;
|
2020-09-08 00:46:45 +02:00
|
|
|
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
|
|
|
|
2020-09-08 00:46:45 +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
|
|
|
}
|
|
|
|
|
2020-09-08 00:46:45 +02:00
|
|
|
@Nullable
|
2016-05-08 21:09:58 +02:00
|
|
|
@Override
|
2020-09-08 00:46:45 +02:00
|
|
|
public TileEntity createTileEntity(BlockState state, IBlockReader world) {
|
2016-05-08 21:09:58 +02:00
|
|
|
return new TileEntityItemViewer();
|
|
|
|
}
|
|
|
|
}
|