package com.tiedup.remake.entities.kidnapper.hosts;

import com.tiedup.remake.entities.EntityKidnapper;
import com.tiedup.remake.entities.KidnapperTheme;
import com.tiedup.remake.entities.ai.kidnapper.KidnapperState;
import com.tiedup.remake.entities.kidnapper.components.IDialogueHost;
import com.tiedup.remake.state.IRestrainable;
import net.minecraft.world.entity.LivingEntity;
import org.jetbrains.annotations.Nullable;

/**
 * Host implementation for KidnapperDialogue callbacks.
 */
public class DialogueHost implements IDialogueHost {

    private final EntityKidnapper entity;

    public DialogueHost(EntityKidnapper entity) {
        this.entity = entity;
    }

    @Override
    public String getNpcName() {
        return entity.getNpcName();
    }

    @Override
    @Nullable
    public KidnapperTheme getTheme() {
        return entity.getTheme();
    }

    @Override
    public boolean hasCaptives() {
        return entity.hasCaptives();
    }

    @Override
    public KidnapperState getCurrentState() {
        return entity.getCurrentState();
    }

    @Override
    @Nullable
    public IRestrainable getCaptive() {
        return entity.getCaptive();
    }

    @Override
    public LivingEntity asEntity() {
        return entity;
    }
}
