Package mekanism.common.tile

Examples of mekanism.common.tile.TileEntityLogisticalSorter


      }
    }

    if(tileEntity instanceof TileEntityLogisticalSorter)
    {
      TileEntityLogisticalSorter transporter = (TileEntityLogisticalSorter)tileEntity;

      if(!transporter.hasInventory())
      {
        for(ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS)
        {
          TileEntity tile = Coord4D.get(transporter).getFromSide(dir).getTileEntity(world);
View Full Code Here


       
        return true;
      }
      else if(type == MachineType.LOGISTICAL_SORTER)
      {
        TileEntityLogisticalSorter sorter = (TileEntityLogisticalSorter)tileEntity;
        LogisticalSorterGuiMessage.openServerGui(SorterGuiPacket.SERVER, 0, world, (EntityPlayerMP)entityplayer, Coord4D.get(tileEntity), -1);
        return true;
      }
      else {
        if(!entityplayer.isSneaking() && type.guiId != -1)
View Full Code Here

        ((TileEntityBasicBlock)tileEntity).onNeighborChange(block);
      }

      if(tileEntity instanceof TileEntityLogisticalSorter)
      {
        TileEntityLogisticalSorter sorter = (TileEntityLogisticalSorter)tileEntity;

        if(!sorter.hasInventory())
        {
          for(ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS)
          {
            TileEntity tile = Coord4D.get(tileEntity).getFromSide(dir).getTileEntity(world);

            if(tile instanceof IInventory)
            {
              sorter.setFacing((short)dir.getOpposite().ordinal());
              return;
            }
          }
        }
      }
View Full Code Here

   
    if(worldServer != null)
    {
      if(message.type == 0 && message.coord4D.getTileEntity(worldServer) instanceof TileEntityLogisticalSorter)
      {
        TileEntityLogisticalSorter sorter = (TileEntityLogisticalSorter) message.coord4D.getTileEntity(worldServer);

        if(!sorter.filters.contains(message.tFilter))
        {
          return null;
        }

        int index = sorter.filters.indexOf(message.tFilter);

        sorter.filters.remove(index);

        if(!message.delete)
        {
          sorter.filters.add(index, message.tEdited);
        }

        for(EntityPlayer iterPlayer : sorter.playersUsing)
        {
          Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(sorter), sorter.getFilterPacket(new ArrayList())), (EntityPlayerMP)iterPlayer);
        }
      }
      else if(message.type == 1 && message.coord4D.getTileEntity(worldServer) instanceof TileEntityDigitalMiner)
      {
        TileEntityDigitalMiner miner = (TileEntityDigitalMiner)message.coord4D.getTileEntity(worldServer);
View Full Code Here

   
    if(worldServer != null)
    {
      if(message.type == 0 && message.coord4D.getTileEntity(worldServer) instanceof TileEntityLogisticalSorter)
      {
        TileEntityLogisticalSorter sorter = (TileEntityLogisticalSorter)message.coord4D.getTileEntity(worldServer);

        sorter.filters.add(message.tFilter);

        for(EntityPlayer iterPlayer : sorter.playersUsing)
        {
          Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(sorter), sorter.getFilterPacket(new ArrayList())), (EntityPlayerMP)iterPlayer);
        }
      }
      else if(message.type == 1 && message.coord4D.getTileEntity(worldServer) instanceof TileEntityDigitalMiner)
      {
        TileEntityDigitalMiner miner = (TileEntityDigitalMiner)message.coord4D.getTileEntity(worldServer);
View Full Code Here

TOP

Related Classes of mekanism.common.tile.TileEntityLogisticalSorter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.