package org.bukkit.craftbukkit.entity;

import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Monster;

public class CraftMonster extends CraftCreature implements Monster, CraftEnemy {

    public CraftMonster(CraftServer server, net.minecraft.world.entity.monster.Monster entity) {
        super(server, entity);
    }

    // Folia start - region threading
    @Override
    public net.minecraft.world.entity.monster.Monster getHandleRaw() {
        return (net.minecraft.world.entity.monster.Monster)this.entity;
    }
    // Folia end - region threading

    @Override
    public net.minecraft.world.entity.monster.Monster getHandle() {
        io.papermc.paper.util.TickThread.ensureTickThread(this.entity, "Accessing entity state off owning region's thread"); // Folia - region threading
        return (net.minecraft.world.entity.monster.Monster) this.entity;
    }

    @Override
    public String toString() {
        return "CraftMonster";
    }
}
