package org.bukkit.craftbukkit.entity;

import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.AbstractCow;
import org.jspecify.annotations.NullMarked;

@NullMarked
public abstract class CraftAbstractCow extends CraftAnimals implements AbstractCow {

    public CraftAbstractCow(CraftServer server, net.minecraft.world.entity.animal.AbstractCow entity) {
        super(server, entity);
    }

    @Override
    public net.minecraft.world.entity.animal.AbstractCow getHandle() {
        ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(this.entity, "Accessing entity state off owning region's thread"); // Folia - region threading
        return (net.minecraft.world.entity.animal.AbstractCow) this.entity;
    }
}
