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

import com.tiedup.remake.dialogue.EntityDialogueManager;
import com.tiedup.remake.entities.EntityKidnapper;
import com.tiedup.remake.entities.kidnapper.components.IAggressionHost;
import java.util.UUID;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.level.Level;
import org.jetbrains.annotations.Nullable;

/**
 * Host implementation for AggressionSystem callbacks.
 */
public class AggressionHost implements IAggressionHost {

    private final EntityKidnapper entity;

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

    @Override
    @Nullable
    public Level level() {
        return entity.level();
    }

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

    @Override
    public void talkToPlayersInRadius(
        EntityDialogueManager.DialogueCategory category,
        int radius
    ) {
        entity.talkToPlayersInRadius(category, radius);
    }

    @Override
    @Nullable
    public UUID getAssociatedStructure() {
        return entity.getAssociatedStructure();
    }

    @Override
    public boolean punishAttackingPrisoner(ServerPlayer player) {
        return entity.punishAttackingPrisoner(player);
    }
}
