mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
[ci skip] Clarify setSize consequences for Slimes (#7036)
This commit is contained in:
parent
a529ce18ed
commit
69a15173ba
1 changed files with 21 additions and 0 deletions
|
@ -88,6 +88,27 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
* @param message The message to send
|
||||
* @deprecated use {@link #sendActionBar(Component)}
|
||||
*/
|
||||
diff --git a/src/main/java/org/bukkit/entity/Slime.java b/src/main/java/org/bukkit/entity/Slime.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Slime.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Slime.java
|
||||
@@ -0,0 +0,0 @@ public interface Slime extends Mob {
|
||||
public int getSize();
|
||||
|
||||
/**
|
||||
+ * Setting the size of the slime (regardless of previous size)
|
||||
+ * will set the following attributes:
|
||||
+ * <ul>
|
||||
+ * <li>{@link org.bukkit.attribute.Attribute#GENERIC_MAX_HEALTH}</li>
|
||||
+ * <li>{@link org.bukkit.attribute.Attribute#GENERIC_MOVEMENT_SPEED}</li>
|
||||
+ * <li>{@link org.bukkit.attribute.Attribute#GENERIC_ATTACK_DAMAGE}</li>
|
||||
+ * </ul>
|
||||
+ * to their per-size defaults and heal the
|
||||
+ * slime to its max health (assuming it's alive).
|
||||
+ *
|
||||
* @param sz The new size of the slime.
|
||||
*/
|
||||
public void setSize(int sz);
|
||||
diff --git a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java
|
||||
|
|
Loading…
Reference in a new issue