content: package zmaster587.advancedRocketry.block;
  
  import net.minecraft.block.state.IBlockState;
  import net.minecraft.entity.EntityLivingBase;
  import net.minecraft.item.ItemStack;
  import net.minecraft.tileentity.TileEntity;
  import net.minecraft.util.math.BlockPos;
  import net.minecraft.world.World;
  import zmaster587.advancedRocketry.api.stations.ISpaceObject;
  import zmaster587.advancedRocketry.stations.SpaceObjectManager;
  import zmaster587.advancedRocketry.stations.SpaceStationObject;
  import zmaster587.libVulpes.block.BlockTile;
  
  import javax.annotation.Nonnull;
  
  public class BlockWarpController extends BlockTile {
  
  	public BlockWarpController(Class<? extends TileEntity> tileClass, int guiId) {
  		super(tileClass, guiId);
  	}
  
  	@Override
  	public void onBlockPlacedBy(World world, BlockPos pos, IBlockState state,
  			EntityLivingBase placer, @Nonnull ItemStack stack) {
  		super.onBlockPlacedBy(world, pos, state, placer, stack);
  		
  		ISpaceObject spaceObject = SpaceObjectManager.getSpaceManager().getSpaceStationFromBlockCoords(pos);
  		
  		if(spaceObject instanceof SpaceStationObject) {
  			((SpaceStationObject)spaceObject).setForwardDirection(getFront(state).getOpposite());
  		}
  	}
  }
  