2020-01-26 02:20:08 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityBlastFurnaceBooster;
|
|
|
|
import net.minecraft.block.Block;
|
2020-01-26 15:52:16 +01:00
|
|
|
import net.minecraft.block.BlockState;
|
2020-01-26 02:20:08 +01:00
|
|
|
import net.minecraft.block.Blocks;
|
2020-01-26 15:52:16 +01:00
|
|
|
import net.minecraft.block.HorizontalBlock;
|
|
|
|
import net.minecraft.item.BlockItemUseContext;
|
|
|
|
import net.minecraft.state.DirectionProperty;
|
|
|
|
import net.minecraft.state.StateContainer;
|
2020-01-26 02:20:08 +01:00
|
|
|
|
|
|
|
public class BlockBlastFurnaceBooster extends BlockContainerImpl {
|
2020-01-26 15:52:16 +01:00
|
|
|
public static final DirectionProperty FACING = HorizontalBlock.HORIZONTAL_FACING;
|
|
|
|
|
2020-01-26 02:20:08 +01:00
|
|
|
public BlockBlastFurnaceBooster() {
|
|
|
|
super("blast_furnace_booster", TileEntityBlastFurnaceBooster::new, Block.Properties.from(Blocks.BLAST_FURNACE));
|
|
|
|
}
|
2020-01-26 15:52:16 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder) {
|
|
|
|
builder.add(FACING);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public BlockState getStateForPlacement(BlockItemUseContext context) {
|
|
|
|
return this.getDefaultState().with(FACING, context.getPlacementHorizontalFacing().getOpposite());
|
|
|
|
}
|
|
|
|
|
2020-01-26 02:20:08 +01:00
|
|
|
}
|