package net.minecraft.client.gui.spectator;

import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.network.chat.Component;
import net.minecraft.client.gui.spectator.categories.TeleportToTeamMenuCategory;
import net.minecraft.client.gui.spectator.categories.TeleportToPlayerMenuCategory;
import com.google.common.collect.Lists;
import java.util.List;

public class RootSpectatorMenuCategory implements SpectatorMenuCategory {
    private final List<SpectatorMenuItem> items;
    
    public RootSpectatorMenuCategory() {
        (this.items = Lists.newArrayList()).add(new TeleportToPlayerMenuCategory());
        this.items.add(new TeleportToTeamMenuCategory());
    }
    
    @Override
    public List<SpectatorMenuItem> getItems() {
        return this.items;
    }
    
    @Override
    public Component getPrompt() {
        return new TranslatableComponent("spectatorMenu.root.prompt");
    }
}
