接口 WanderingTrader

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

public interface WanderingTrader extends AbstractVillager
Represents a wandering trader NPC
  • 方法详细资料

    • getDespawnDelay

      int getDespawnDelay()
      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.
      返回:
      The despawn delay before this WanderingTrader is forcibly despawned
    • setDespawnDelay

      void setDespawnDelay(int despawnDelay)
      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