Package mekanism.common.tile

Examples of mekanism.common.tile.TileEntityDigitalMiner


      playerMP.openContainer.windowId = window;
      playerMP.openContainer.addCraftingToCrafters(playerMP);
 
      if(guiType == 0)
      {
        TileEntityDigitalMiner tile = (TileEntityDigitalMiner)obj.getTileEntity(world);
 
        for(EntityPlayer player : tile.playersUsing)
        {
          Mekanism.packetHandler.sendTo(new TileEntityMessage(obj, tile.getFilterPacket(new ArrayList())), (EntityPlayerMP)player);
        }
      }
    }
View Full Code Here


          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);

        if(!miner.filters.contains(message.mFilter))
        {
          return null;
        }

        int index = miner.filters.indexOf(message.mFilter);

        miner.filters.remove(index);

        if(!message.delete)
        {
          miner.filters.add(index, message.mEdited);
        }

        for(EntityPlayer iterPlayer : miner.playersUsing)
        {
          Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(miner), miner.getFilterPacket(new ArrayList())), (EntityPlayerMP)iterPlayer);
        }
      }
    }
 
    return null;
View Full Code Here

          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);

        miner.filters.add(message.mFilter);

        for(EntityPlayer iterPlayer : miner.playersUsing)
        {
          Mekanism.packetHandler.sendTo(new TileEntityMessage(Coord4D.get(miner), miner.getFilterPacket(new ArrayList())), (EntityPlayerMP)iterPlayer);
        }
      }
    }
   
    return null;
View Full Code Here

TOP

Related Classes of mekanism.common.tile.TileEntityDigitalMiner

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.