Commits

Cynthia Yantis authored and md_5 committed a4d18241845
#581: Add methods to modify despawn delay for wandering villagers
No tags

src/main/java/org/bukkit/entity/WanderingTrader.java

Modified
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 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut