SteamWar/FightSystem
Archiviert
13
1

RedstoneWincondition #274

Geschlossen
YoyoNow möchte 18 Commits von RedstoneWincondition nach master mergen
Nur Änderungen aus Commit fcf75a12ba werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -192,35 +192,7 @@ public class Config {
TimeoutTime = config.getInt("WinConditionParams.TimeoutTime"); TimeoutTime = config.getInt("WinConditionParams.TimeoutTime");
PercentWin = config.getDouble("WinConditionParams.PercentWin"); PercentWin = config.getDouble("WinConditionParams.PercentWin");
Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(new Collector<Material, HashSet<Material>, Set<Material>>() { Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(Collectors.toSet());
@Override
public Supplier<HashSet<Material>> supplier() {
return HashSet::new;
}
@Override
public BiConsumer<HashSet<Material>, Material> accumulator() {
return HashSet::add;
}
@Override
public BinaryOperator<HashSet<Material>> combiner() {
return (materials, materials2) -> {
materials.addAll(materials2);
return materials;
};
}
@Override
public Function<HashSet<Material>, Set<Material>> finisher() {
return Collections::unmodifiableSet;
}
@Override
public Set<Characteristics> characteristics() {
return Collections.emptySet();
}
});
EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages")); EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages"));