Expose server build information (#10729)
* Expose server build information * squash patches * final tweaks --------- Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: masmc05 <masmc05@gmail.com>
This commit is contained in:
parent
3fc93581bb
commit
f17519338b
1360 changed files with 1817 additions and 1446 deletions
29
patches/api/0375-Add-entity-knockback-API.patch
Normal file
29
patches/api/0375-Add-entity-knockback-API.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: MelnCat <melncatuwu@gmail.com>
|
||||
Date: Sun, 16 Oct 2022 12:10:00 -0700
|
||||
Subject: [PATCH] Add entity knockback API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
index 51d3bc142bcd3b349326ae2553660abcf19a2638..6bfc8a2148f504370df938447f4f6b757f1a516b 100644
|
||||
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
@@ -1351,4 +1351,18 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||
}
|
||||
}
|
||||
// Paper end - swing hand API
|
||||
+
|
||||
+ // Paper start - knockback API
|
||||
+ /**
|
||||
+ * Knocks back this entity from a specific direction with a specified strength. Mechanics such
|
||||
+ * as knockback resistance will be factored in.
|
||||
+ *
|
||||
+ * The direction specified in this method will be the direction of the source of the knockback,
|
||||
+ * so the entity will be pushed in the opposite direction.
|
||||
+ * @param strength The strength of the knockback. Must be greater than 0.
|
||||
+ * @param directionX The relative x position of the knockback source direction
|
||||
+ * @param directionZ The relative z position of the knockback source direction
|
||||
+ */
|
||||
+ void knockback(double strength, double directionX, double directionZ);
|
||||
+ // Paper end - knockback API
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue