minecraft_25w45a_unobfuscated/net/minecraft/server/packs/FeatureFlagsMetadataSection.java
2025-11-24 22:52:51 +03:00

25 lines
1.1 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.mojang.datafixers.kinds.App
* com.mojang.datafixers.kinds.Applicative
* com.mojang.serialization.Codec
* com.mojang.serialization.codecs.RecordCodecBuilder
*/
package net.minecraft.server.packs;
import com.mojang.datafixers.kinds.App;
import com.mojang.datafixers.kinds.Applicative;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.server.packs.metadata.MetadataSectionType;
import net.minecraft.world.flag.FeatureFlagSet;
import net.minecraft.world.flag.FeatureFlags;
public record FeatureFlagsMetadataSection(FeatureFlagSet flags) {
private static final Codec<FeatureFlagsMetadataSection> CODEC = RecordCodecBuilder.create(i -> i.group((App)FeatureFlags.CODEC.fieldOf("enabled").forGetter(FeatureFlagsMetadataSection::flags)).apply((Applicative)i, FeatureFlagsMetadataSection::new));
public static final MetadataSectionType<FeatureFlagsMetadataSection> TYPE = new MetadataSectionType<FeatureFlagsMetadataSection>("features", CODEC);
}