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

36 lines
1.2 KiB
Java
Raw Normal View History

/*
2017-01-01 16:23:26 +01:00
* This file ("BlockItemViewerHopping.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.blocks;
import de.ellpeck.actuallyadditions.mod.tile.TileEntityItemViewerHopping;
2021-03-01 20:14:50 +01:00
import net.minecraft.block.BlockState;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
2021-03-01 20:14:50 +01:00
import net.minecraft.util.math.shapes.ISelectionContext;
import net.minecraft.util.math.shapes.VoxelShape;
import net.minecraft.world.IBlockReader;
2019-05-02 09:10:29 +02:00
public class BlockItemViewerHopping extends BlockItemViewer {
public BlockItemViewerHopping() {
2021-03-01 20:14:50 +01:00
super();
}
@Override
2021-03-01 20:14:50 +01:00
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) {
return Shapes.HOPPING_ITEM_VIEWER_SHAPE;
}
@Override
2021-03-01 20:14:50 +01:00
public TileEntity createNewTileEntity(IBlockReader worldIn) {
return new TileEntityItemViewerHopping();
}
}