RedstoneWincondition #274
@ -192,35 +192,7 @@ public class Config {
|
||||
|
||||
TimeoutTime = config.getInt("WinConditionParams.TimeoutTime");
|
||||
PercentWin = config.getDouble("WinConditionParams.PercentWin");
|
||||
Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(new Collector<Material, HashSet<Material>, Set<Material>>() {
|
||||
@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();
|
||||
}
|
||||
});
|
||||
Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(Collectors.toSet());
|
||||
|
||||
EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages"));
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren