/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.mojang.serialization.Codec * com.mojang.serialization.MapCodec */ package net.minecraft.advancements.criterion; import com.mojang.serialization.Codec; import com.mojang.serialization.MapCodec; import net.minecraft.advancements.CriterionTrigger; import net.minecraft.advancements.CriterionTriggerInstance; import net.minecraft.advancements.criterion.CriterionValidator; import net.minecraft.server.PlayerAdvancements; public class ImpossibleTrigger implements CriterionTrigger { @Override public void addPlayerListener(PlayerAdvancements player, CriterionTrigger.Listener listener) { } @Override public void removePlayerListener(PlayerAdvancements player, CriterionTrigger.Listener listener) { } @Override public void removePlayerListeners(PlayerAdvancements player) { } @Override public Codec codec() { return TriggerInstance.CODEC; } public record TriggerInstance() implements CriterionTriggerInstance { public static final Codec CODEC = MapCodec.unitCodec((Object)new TriggerInstance()); @Override public void validate(CriterionValidator validator) { } } }