mirror of https://github.com/PaperMC/Paper.git
Add missing start and end comments
This commit is contained in:
parent
1b4a23ce76
commit
4eff4a608a
|
@ -5,13 +5,14 @@ Subject: [PATCH] Add entity heal API
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/entity/Damageable.java b/src/main/java/org/bukkit/entity/Damageable.java
|
diff --git a/src/main/java/org/bukkit/entity/Damageable.java b/src/main/java/org/bukkit/entity/Damageable.java
|
||||||
index c4537080ee1875e984356eee42337a1342f4c9a3..8c5e56b4abde4b2730d54158830218ab6ebbcc9b 100644
|
index c4537080ee1875e984356eee42337a1342f4c9a3..949763cb5ac9d05ca5c2918296491e29b2e5cb22 100644
|
||||||
--- a/src/main/java/org/bukkit/entity/Damageable.java
|
--- a/src/main/java/org/bukkit/entity/Damageable.java
|
||||||
+++ b/src/main/java/org/bukkit/entity/Damageable.java
|
+++ b/src/main/java/org/bukkit/entity/Damageable.java
|
||||||
@@ -53,6 +53,30 @@ public interface Damageable extends Entity {
|
@@ -53,6 +53,32 @@ public interface Damageable extends Entity {
|
||||||
*/
|
*/
|
||||||
void setHealth(double health);
|
void setHealth(double health);
|
||||||
|
|
||||||
|
+ // Paper start - entity heal API
|
||||||
+ /**
|
+ /**
|
||||||
+ * Heal this entity by the given amount. This will call {@link org.bukkit.event.entity.EntityRegainHealthEvent}
|
+ * Heal this entity by the given amount. This will call {@link org.bukkit.event.entity.EntityRegainHealthEvent}
|
||||||
+ *
|
+ *
|
||||||
|
@ -35,6 +36,7 @@ index c4537080ee1875e984356eee42337a1342f4c9a3..8c5e56b4abde4b2730d54158830218ab
|
||||||
+ * @param isFastRegen Is the healing considered fast regen or not
|
+ * @param isFastRegen Is the healing considered fast regen or not
|
||||||
+ */
|
+ */
|
||||||
+ void heal(double amount, @NotNull org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason reason, boolean isFastRegen);
|
+ void heal(double amount, @NotNull org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason reason, boolean isFastRegen);
|
||||||
|
+ // Paper end - entity heal API
|
||||||
+
|
+
|
||||||
/**
|
/**
|
||||||
* Gets the entity's absorption amount.
|
* Gets the entity's absorption amount.
|
||||||
|
|
Loading…
Reference in New Issue