mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 04:59:48 +00:00
29 lines
727 B
Java
29 lines
727 B
Java
package noppes.npcs.api.entity;
|
|
|
|
import net.minecraft.entity.passive.EntityVillager;
|
|
|
|
/**
|
|
* Represents a villager entity with additional trading-related methods.
|
|
*
|
|
* @param <T> The underlying Minecraft EntityVillager type.
|
|
*/
|
|
public interface IVillager<T extends EntityVillager> extends IEntityLiving<T> {
|
|
|
|
/**
|
|
* @return The profession of the villager.
|
|
*/
|
|
int getProfession();
|
|
|
|
/**
|
|
* @return true if the villager is currently trading.
|
|
*/
|
|
boolean getIsTrading();
|
|
|
|
/**
|
|
* Returns the customer (player) who is currently trading with the villager.
|
|
*
|
|
* @return the customer as an IEntityLivingBase.
|
|
*/
|
|
IEntityLivingBase getCustomer();
|
|
}
|