mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Fix issues with mob conversion
This commit is contained in:
parent
9ae3b87be7
commit
450f5fe793
2 changed files with 18 additions and 11 deletions
|
@ -44,13 +44,17 @@ public interface Hoglin extends Animals, Enemy {
|
||||||
public int getConversionTime();
|
public int getConversionTime();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the amount of ticks until this entity will be converted to a Zoglin.
|
* Sets the conversion counter value. The counter is incremented
|
||||||
|
* every tick the method {@link #isConverting()} returns true. Setting
|
||||||
|
* this value will not start the conversion if the {@link Hoglin} is
|
||||||
|
* not in a valid environment ({@link org.bukkit.World#isPiglinSafe})
|
||||||
|
* to convert, is immune to zombification ({@link #isImmuneToZombification()})
|
||||||
|
* or has no AI ({@link #hasAI}).
|
||||||
*
|
*
|
||||||
* When this reaches 0, the entity will be converted. A value of less than 0
|
* When this reaches 300, the entity will be converted. To stop the
|
||||||
* will stop the current conversion process without converting the current
|
* conversion use {@link #setImmuneToZombification(boolean)}.
|
||||||
* entity.
|
|
||||||
*
|
*
|
||||||
* @param time new conversion time
|
* @param time new conversion counter
|
||||||
*/
|
*/
|
||||||
public void setConversionTime(int time);
|
public void setConversionTime(int time);
|
||||||
|
|
||||||
|
|
|
@ -31,14 +31,17 @@ public interface PiglinAbstract extends Monster, Ageable {
|
||||||
public int getConversionTime();
|
public int getConversionTime();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the amount of ticks until this entity will be converted to a
|
* Sets the conversion counter value. The counter is incremented
|
||||||
* Zombified Piglin.
|
* every tick the method {@link #isConverting()} returns true. Setting
|
||||||
|
* this value will not start the conversion if the {@link PiglinAbstract} is
|
||||||
|
* not in a valid environment ({@link org.bukkit.World#isPiglinSafe})
|
||||||
|
* to convert, is immune to zombification ({@link #isImmuneToZombification()})
|
||||||
|
* or has no AI ({@link #hasAI}).
|
||||||
*
|
*
|
||||||
* When this reaches 0, the entity will be converted. A value of less than 0
|
* When this reaches 300, the entity will be converted. To stop the
|
||||||
* will stop the current conversion process without converting the current
|
* conversion use {@link #setImmuneToZombification(boolean)}.
|
||||||
* entity.
|
|
||||||
*
|
*
|
||||||
* @param time new conversion time
|
* @param time new conversion counter
|
||||||
*/
|
*/
|
||||||
public void setConversionTime(int time);
|
public void setConversionTime(int time);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue