Interface IVillager<T extends net.minecraft.entity.passive.EntityVillager>

  • Type Parameters:
    T - The underlying Minecraft EntityVillager type.
    All Superinterfaces:
    IEntity<T>, IEntityLiving<T>, IEntityLivingBase<T>

    public interface IVillager<T extends net.minecraft.entity.passive.EntityVillager>
    extends IEntityLiving<T>
    Represents a villager entity with additional trading-related methods.
    • Method Detail

      • getProfession

        int getProfession()
        Returns:
        The profession of the villager.
      • getIsTrading

        boolean getIsTrading()
        Returns:
        true if the villager is currently trading.
      • getCustomer

        IEntityLivingBase getCustomer()
        Returns the customer (player) who is currently trading with the villager.
        Returns:
        the customer as an IEntityLivingBase.