接口 AbstractVillager

所有超级接口:
Ageable, Attributable, Breedable, CommandSender, Creature, Damageable, Entity, InventoryHolder, LivingEntity, Lootable, Merchant, Metadatable, Mob, Nameable, NPC, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator
所有已知子接口:
Villager, WanderingTrader

public interface AbstractVillager extends Breedable, NPC, InventoryHolder, Merchant
代表一个抽象村民NPC.

原文: Represents a villager NPC

  • 方法详细资料

    • getInventory

      @NotNull @NotNull Inventory getInventory()
      获得这个村民的物品栏.
      注意这个物品栏不是商人村民交易的物品, 而是村民收集的物品(收割庄稼).

      原文: Gets this villager's inventory.
      Note that this inventory is not the Merchant inventory, rather, it is the items that a villager might have collected (from harvesting crops, etc.) 获取该对象的用户界面项目.

      原文:Get the object's inventory.

      指定者:
      getInventory 在接口中 InventoryHolder
      返回:
      The inventory.