NaturesAura/src/main/java/de/ellpeck/naturesaura/blocks/BlockPowderPlacer.java

46 lines
1.4 KiB
Java
Raw Normal View History

2019-02-22 19:06:47 +01:00
package de.ellpeck.naturesaura.blocks;
2020-01-21 23:02:39 +01:00
import de.ellpeck.naturesaura.blocks.tiles.ModTileEntities;
2019-02-22 19:06:47 +01:00
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.util.math.AxisAlignedBB;
public class BlockPowderPlacer extends BlockContainerImpl {
2020-01-21 21:04:44 +01:00
// TODO bound box
2019-02-22 19:06:47 +01:00
private static final AxisAlignedBB BOUND_BOX = new AxisAlignedBB(0F, 0F, 0F, 1F, 4 / 16F, 1F);
public BlockPowderPlacer() {
2020-01-21 23:02:39 +01:00
super("powder_placer", ModTileEntities.POWDER_PLACER, ModBlocks.prop(Material.ROCK).hardnessAndResistance(2, 5F).sound(SoundType.STONE));
2019-02-22 19:06:47 +01:00
}
2020-01-21 21:04:44 +01:00
/*
2019-02-22 19:06:47 +01:00
@Override
2019-10-20 22:30:49 +02:00
public AxisAlignedBB getBoundingBox(BlockState state, IBlockAccess source, BlockPos pos) {
2019-02-22 19:06:47 +01:00
return BOUND_BOX;
}
@Override
2019-10-20 22:30:49 +02:00
public boolean isFullCube(BlockState state) {
2019-02-22 19:06:47 +01:00
return false;
}
@Override
2019-10-20 22:30:49 +02:00
public boolean isOpaqueCube(BlockState state) {
2019-02-22 19:06:47 +01:00
return false;
}
@Override
2019-10-20 22:30:49 +02:00
public boolean isNormalCube(BlockState state, IBlockAccess world, BlockPos pos) {
2019-02-22 19:06:47 +01:00
return false;
}
@Override
2019-10-20 22:30:49 +02:00
public boolean isSideSolid(BlockState baseState, IBlockAccess world, BlockPos pos, Direction side) {
return side == Direction.DOWN;
2019-02-22 19:06:47 +01:00
}
@Override
2019-10-20 22:30:49 +02:00
public BlockFaceShape getBlockFaceShape(IBlockAccess worldIn, BlockState state, BlockPos pos, Direction face) {
2019-02-22 19:06:47 +01:00
return BlockFaceShape.UNDEFINED;
2020-01-21 21:04:44 +01:00
}*/
2019-02-22 19:06:47 +01:00
}