ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/common/blocks/BlockItemViewer.java
Michael be421af8e2
Big Refactor of the package layout
Ignore this commit for diffs
2020-09-09 15:48:43 +01:00

29 lines
907 B
Java

package de.ellpeck.actuallyadditions.blocks;
import de.ellpeck.actuallyadditions.blocks.base.BlockContainerBase;
import de.ellpeck.actuallyadditions.tile.TileEntityItemViewer;
import net.minecraft.block.BlockState;
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;
public class BlockItemViewer extends BlockContainerBase {
public BlockItemViewer() {
super(Properties.create(Material.ROCK)
.harvestTool(ToolType.PICKAXE)
.hardnessAndResistance(1.5f, 10.0f)
.sound(SoundType.STONE));
}
@Nullable
@Override
public TileEntity createTileEntity(BlockState state, IBlockReader world) {
return new TileEntityItemViewer();
}
}