mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 14:33:56 +01:00
under where?
This commit is contained in:
parent
13a836aa35
commit
92ef9d939b
@ -5,7 +5,7 @@ Subject: [PATCH] Player standing on position API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
|
||||
index 6ace3581f8d0c2a1b7e2188d5b6af5c984b74a0e..5f951bfde42aa0df331b69d0eed87566a353a54d 100644
|
||||
index 6ace3581f8d0c2a1b7e2188d5b6af5c984b74a0e..144af73a97328604fe01061d8075ddbeb706244a 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Entity.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
||||
@@ -1107,4 +1107,30 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
@ -18,7 +18,7 @@ index 6ace3581f8d0c2a1b7e2188d5b6af5c984b74a0e..5f951bfde42aa0df331b69d0eed87566
|
||||
+ * <p>
|
||||
+ * Examples:
|
||||
+ * - When standing on a slab under an ice block, this will return the position of the ice block.
|
||||
+ * - When flying on top of a flower located under a grass block this will return the position of the grass block (although this technically will not affect your movement).
|
||||
+ * - When flying on top of a flower placed on a grass block this will return the position of the grass block (although this technically will not affect your movement).
|
||||
+ *
|
||||
+ * @return block used for movement affects
|
||||
+ */
|
||||
@ -31,7 +31,7 @@ index 6ace3581f8d0c2a1b7e2188d5b6af5c984b74a0e..5f951bfde42aa0df331b69d0eed87566
|
||||
+ * <p>
|
||||
+ * Examples:
|
||||
+ * - When standing on a slab under an ice block, this will return the position of the slab.
|
||||
+ * - When flying on top of a flower located under a grass block this will return null, because no block is holding your location.
|
||||
+ * - When flying on top of a flower placed on a grass block this will return null, because no block is holding your location.
|
||||
+ *
|
||||
+ * @return block currently supporting the entity, or null if a block is currently not supporting the entity
|
||||
+ */
|
||||
|
Loading…
Reference in New Issue
Block a user