public boolean isAllPlayersFullyAsleep() {
        if (this.allPlayersSleeping && !this.multiplayerWorld) {
            Iterator var1 = this.playerEntities.iterator();

            EntityPlayer var2;
            do {
                if (!var1.hasNext()) {
                    return true;
                }

                var2 = (EntityPlayer) var1.next();
            } while (var2.isPlayerFullyAsleep());

            return false;
        } else {
            return false;
        }
    }