/* * 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.dialog; 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.dialog.action.ParsedTemplate; import net.minecraft.server.dialog.input.InputControl; public record Input(String key, InputControl control) { public static final Codec CODEC = RecordCodecBuilder.create(i -> i.group((App)ParsedTemplate.VARIABLE_CODEC.fieldOf("key").forGetter(Input::key), (App)InputControl.MAP_CODEC.forGetter(Input::control)).apply((Applicative)i, Input::new)); }