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