Commits
Cynthia Yantis authored and md_5 committed a4d18241845
1 1 | package org.bukkit.entity; |
2 2 | |
3 3 | /** |
4 4 | * Represents a wandering trader NPC |
5 5 | */ |
6 - | public interface WanderingTrader extends AbstractVillager { } |
6 + | public interface WanderingTrader extends AbstractVillager { |
7 + | |
8 + | /** |
9 + | * Gets the despawn delay before this {@link WanderingTrader} is forcibly |
10 + | * despawned. |
11 + | * |
12 + | * If this is less than or equal to 0, then the trader will not be |
13 + | * despawned. |
14 + | * |
15 + | * @return The despawn delay before this {@link WanderingTrader} is forcibly |
16 + | * despawned |
17 + | */ |
18 + | public int getDespawnDelay(); |
19 + | |
20 + | /** |
21 + | * Sets the despawn delay before this {@link WanderingTrader} is forcibly |
22 + | * despawned. |
23 + | * |
24 + | * If this is less than or equal to 0, then the trader will not be |
25 + | * despawned. |
26 + | * |
27 + | * @param despawnDelay The new despawn delay before this |
28 + | * {@link WanderingTrader} is forcibly despawned |
29 + | */ |
30 + | public void setDespawnDelay(int despawnDelay); |
31 + | } |