Package logisticspipes.utils

Examples of logisticspipes.utils.PlayerCollectionList


      System.err.println("sendPacketToAllWatchingChunk called clientside !");
      new Exception().printStackTrace();
      return;
    }
    ChunkCoordIntPair chunk = new ChunkCoordIntPair(X >> 4, Z >> 4);
    PlayerCollectionList players = LogisticsEventListener.watcherList.get(chunk);
    if(players != null) {
      for(EntityPlayer player:players.players()) {
        if(MainProxy.getDimensionForWorld(player.worldObj) == dimensionId) {
          sendPacketToPlayer(packet, player);
        }
      }
      return;
View Full Code Here


  int taskCount = 0;
 
  @SubscribeEvent
  public void watchChunk(Watch event) {
    if(!watcherList.containsKey(event.chunk)) {
      watcherList.put(event.chunk, new PlayerCollectionList());
    }
    watcherList.get(event.chunk).add(event.player);
  }
View Full Code Here

    NewGuiHandler.getGui(UpgradeManagerGui.class).setTilePos(pipe.container).open(entityplayer);
  }

  public IGuiOpenControler getGuiController() {
    return new IGuiOpenControler() {
      PlayerCollectionList players = new PlayerCollectionList();
      @Override
      public void guiOpenedByPlayer(EntityPlayer player) {
        players.add(player);
      }
      @Override
      public void guiClosedByPlayer(EntityPlayer player) {
        players.remove(player);
        if(players.isEmpty() && !isCombinedSneakyUpgrade) {
          sneakyInv.dropContents(pipe.getWorld(), pipe.getX(), pipe.getY(), pipe.getZ());
        }
      }
    };
  }
View Full Code Here

TOP

Related Classes of logisticspipes.utils.PlayerCollectionList

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.