/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.mojang.brigadier.exceptions.CommandSyntaxException * com.mojang.serialization.MapCodec * org.jspecify.annotations.Nullable */ package net.minecraft.network.chat; import com.mojang.brigadier.exceptions.CommandSyntaxException; import com.mojang.serialization.MapCodec; import java.util.Optional; import net.minecraft.commands.CommandSourceStack; import net.minecraft.network.chat.FormattedText; import net.minecraft.network.chat.MutableComponent; import net.minecraft.network.chat.Style; import net.minecraft.world.entity.Entity; import org.jspecify.annotations.Nullable; public interface ComponentContents { default public Optional visit(FormattedText.StyledContentConsumer output, Style currentStyle) { return Optional.empty(); } default public Optional visit(FormattedText.ContentConsumer output) { return Optional.empty(); } default public MutableComponent resolve(@Nullable CommandSourceStack source, @Nullable Entity entity, int recursionDepth) throws CommandSyntaxException { return MutableComponent.create(this); } public MapCodec codec(); }