/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.mojang.datafixers.kinds.App * com.mojang.datafixers.kinds.Applicative * com.mojang.datafixers.util.Either * com.mojang.serialization.MapCodec * com.mojang.serialization.codecs.RecordCodecBuilder */ package net.minecraft.client.gui.font.providers; import com.mojang.datafixers.kinds.App; import com.mojang.datafixers.kinds.Applicative; import com.mojang.datafixers.util.Either; import com.mojang.serialization.MapCodec; import com.mojang.serialization.codecs.RecordCodecBuilder; import net.minecraft.client.gui.font.providers.GlyphProviderDefinition; import net.minecraft.client.gui.font.providers.GlyphProviderType; import net.minecraft.resources.Identifier; public record ProviderReferenceDefinition(Identifier id) implements GlyphProviderDefinition { public static final MapCodec CODEC = RecordCodecBuilder.mapCodec(i -> i.group((App)Identifier.CODEC.fieldOf("id").forGetter(ProviderReferenceDefinition::id)).apply((Applicative)i, ProviderReferenceDefinition::new)); @Override public GlyphProviderType type() { return GlyphProviderType.REFERENCE; } @Override public Either unpack() { return Either.right((Object)new GlyphProviderDefinition.Reference(this.id)); } }