mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
[ci skip] Fix hoglin conversionTime javadoc (#8734)
This commit is contained in:
@@ -4,22 +4,49 @@ Date: Sun, 24 Oct 2021 20:29:27 -0700
|
|||||||
Subject: [PATCH] Fix issues with mob conversion
|
Subject: [PATCH] Fix issues with mob conversion
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/entity/PiglinAbstract.java b/src/main/java/org/bukkit/entity/PiglinAbstract.java
|
diff --git a/src/main/java/org/bukkit/entity/Hoglin.java b/src/main/java/org/bukkit/entity/Hoglin.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/entity/PiglinAbstract.java
|
--- a/src/main/java/org/bukkit/entity/Hoglin.java
|
||||||
+++ b/src/main/java/org/bukkit/entity/PiglinAbstract.java
|
+++ b/src/main/java/org/bukkit/entity/Hoglin.java
|
||||||
@@ -0,0 +0,0 @@ public interface PiglinAbstract extends Monster, Ageable {
|
@@ -0,0 +0,0 @@ public interface Hoglin extends Animals {
|
||||||
public int getConversionTime();
|
public int getConversionTime();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
- * Sets the amount of ticks until this entity will be converted to a
|
- * Sets the amount of ticks until this entity will be converted to a Zoglin.
|
||||||
- * Zombified Piglin.
|
|
||||||
+ * Sets the conversion counter value. The counter is incremented
|
+ * Sets the conversion counter value. The counter is incremented
|
||||||
+ * every tick the {@link #isConverting()} returns true. Setting this
|
+ * every tick the method {@link #isConverting()} returns true. Setting
|
||||||
+ * value will not start the conversion if the {@link PiglinAbstract} is
|
+ * this value will not start the conversion if the {@link Hoglin} is
|
||||||
+ * not in a valid environment ({@link org.bukkit.World#isPiglinSafe})
|
+ * not in a valid environment ({@link org.bukkit.World#isPiglinSafe})
|
||||||
+ * to convert or {@link #isImmuneToZombification()} is true or
|
+ * to convert, is immune to zombification ({@link #isImmuneToZombification()})
|
||||||
+ * has no AI.
|
+ * or has no AI ({@link #hasAI}).
|
||||||
|
*
|
||||||
|
- * When this reaches 0, the entity will be converted. A value of less than 0
|
||||||
|
- * will stop the current conversion process without converting the current
|
||||||
|
- * entity.
|
||||||
|
+ * When this reaches 300, the entity will be converted. To stop the
|
||||||
|
+ * conversion use {@link #setImmuneToZombification(boolean)}.
|
||||||
|
*
|
||||||
|
- * @param time new conversion time
|
||||||
|
+ * @param time new conversion counter
|
||||||
|
*/
|
||||||
|
public void setConversionTime(int time);
|
||||||
|
|
||||||
|
diff --git a/src/main/java/org/bukkit/entity/PiglinAbstract.java b/src/main/java/org/bukkit/entity/PiglinAbstract.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/org/bukkit/entity/PiglinAbstract.java
|
||||||
|
+++ b/src/main/java/org/bukkit/entity/PiglinAbstract.java
|
||||||
|
@@ -0,0 +0,0 @@ public interface PiglinAbstract extends Monster, Ageable {
|
||||||
|
public int getConversionTime();
|
||||||
|
|
||||||
|
/**
|
||||||
|
- * Sets the amount of ticks until this entity will be converted to a
|
||||||
|
- * Zombified Piglin.
|
||||||
|
+ * 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 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 0, the entity will be converted. A value of less than 0
|
||||||
- * will stop the current conversion process without converting the current
|
- * will stop the current conversion process without converting the current
|
||||||
|
Reference in New Issue
Block a user