Interface WanderingTrader

All Superinterfaces:
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
  • Method Details Link icon

    • getDespawnDelay Link icon

      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.
      Returns:
      The despawn delay before this WanderingTrader is forcibly despawned
    • setDespawnDelay Link icon

      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.
      Parameters:
      despawnDelay - The new despawn delay before this WanderingTrader is forcibly despawned