/* * 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)ImmutableList.of((Object)"vanilla"), (List)ImmutableList.of()); public static final Codec 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 enabled; private final List disabled; public DataPackConfig(List enabled, List disabled) { this.enabled = ImmutableList.copyOf(enabled); this.disabled = ImmutableList.copyOf(disabled); } public List getEnabled() { return this.enabled; } public List getDisabled() { return this.disabled; } }