40 lines
1.5 KiB
Java
40 lines
1.5 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.google.common.collect.ImmutableList
|
|
* com.mojang.datafixers.kinds.App
|
|
* com.mojang.datafixers.kinds.Applicative
|
|
* com.mojang.serialization.Codec
|
|
* com.mojang.serialization.codecs.RecordCodecBuilder
|
|
*/
|
|
package net.minecraft.world.level;
|
|
|
|
import com.google.common.collect.ImmutableList;
|
|
import com.mojang.datafixers.kinds.App;
|
|
import com.mojang.datafixers.kinds.Applicative;
|
|
import com.mojang.serialization.Codec;
|
|
import com.mojang.serialization.codecs.RecordCodecBuilder;
|
|
import java.util.List;
|
|
|
|
public class DataPackConfig {
|
|
public static final DataPackConfig DEFAULT = new DataPackConfig((List<String>)ImmutableList.of((Object)"vanilla"), (List<String>)ImmutableList.of());
|
|
public static final Codec<DataPackConfig> CODEC = RecordCodecBuilder.create(i -> i.group((App)Codec.STRING.listOf().fieldOf("Enabled").forGetter(o -> o.enabled), (App)Codec.STRING.listOf().fieldOf("Disabled").forGetter(o -> o.disabled)).apply((Applicative)i, DataPackConfig::new));
|
|
private final List<String> enabled;
|
|
private final List<String> disabled;
|
|
|
|
public DataPackConfig(List<String> enabled, List<String> disabled) {
|
|
this.enabled = ImmutableList.copyOf(enabled);
|
|
this.disabled = ImmutableList.copyOf(disabled);
|
|
}
|
|
|
|
public List<String> getEnabled() {
|
|
return this.enabled;
|
|
}
|
|
|
|
public List<String> getDisabled() {
|
|
return this.disabled;
|
|
}
|
|
}
|
|
|