接口 WanderingTrader

所有超级接口:
AbstractVillager, Ageable, Attributable, Breedable, CommandSender, Creature, Damageable, Entity, InventoryHolder, Leashable, LivingEntity, Lootable, Merchant, Metadatable, Mob, Nameable, NPC, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface WanderingTrader extends AbstractVillager
表示流浪商人NPC
  • 方法详细资料

    • getDespawnDelay

      int getDespawnDelay()
      获取此WanderingTrader被强制消失前的消失延迟。 如果此值小于或等于0,则商人不会消失。
      返回:
      此WanderingTrader被强制消失前的消失延迟

      原文:Gets the despawn delay before this WanderingTrader is forcibly despawned. If this is less than or equal to 0, then the trader will not be despawned.

    • setDespawnDelay

      void setDespawnDelay(int despawnDelay)
      设置此WanderingTrader被强制消失前的消失延迟。 如果此值小于或等于0,则商人不会消失。
      参数:
      despawnDelay - 此WanderingTrader被强制消失前的新消失延迟

      原文:Sets the despawn delay before this WanderingTrader is forcibly despawned. If this is less than or equal to 0, then the trader will not be despawned.

      despawnDelay - The new despawn delay before this WanderingTrader is forcibly despawned