mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
#581: Add methods to modify despawn delay for wandering villagers
By: DiamondDagger590 <diamonddagger590@gmail.com>
This commit is contained in:
parent
652b7b8ea8
commit
d7224acea0
1 changed files with 26 additions and 1 deletions
|
@ -3,4 +3,29 @@ package org.bukkit.entity;
|
|||
/**
|
||||
* Represents a wandering trader NPC
|
||||
*/
|
||||
public interface WanderingTrader extends AbstractVillager { }
|
||||
public interface WanderingTrader extends AbstractVillager {
|
||||
|
||||
/**
|
||||
* Gets the despawn delay before this {@link WanderingTrader} is forcibly
|
||||
* despawned.
|
||||
*
|
||||
* If this is less than or equal to 0, then the trader will not be
|
||||
* despawned.
|
||||
*
|
||||
* @return The despawn delay before this {@link WanderingTrader} is forcibly
|
||||
* despawned
|
||||
*/
|
||||
public int getDespawnDelay();
|
||||
|
||||
/**
|
||||
* Sets the despawn delay before this {@link WanderingTrader} is forcibly
|
||||
* despawned.
|
||||
*
|
||||
* If this is less than or equal to 0, then the trader will not be
|
||||
* despawned.
|
||||
*
|
||||
* @param despawnDelay The new despawn delay before this
|
||||
* {@link WanderingTrader} is forcibly despawned
|
||||
*/
|
||||
public void setDespawnDelay(int despawnDelay);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue