under where?

This commit is contained in:
Owen1212055 2024-01-27 15:00:58 -05:00
parent 13a836aa35
commit 92ef9d939b
No known key found for this signature in database
GPG Key ID: 2133292072886A30

View File

@ -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 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 --- a/src/main/java/org/bukkit/entity/Entity.java
+++ b/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 @@ -1107,4 +1107,30 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
@ -18,7 +18,7 @@ index 6ace3581f8d0c2a1b7e2188d5b6af5c984b74a0e..5f951bfde42aa0df331b69d0eed87566
+ * <p> + * <p>
+ * Examples: + * Examples:
+ * - When standing on a slab under an ice block, this will return the position of the ice block. + * - 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 + * @return block used for movement affects
+ */ + */
@ -31,7 +31,7 @@ index 6ace3581f8d0c2a1b7e2188d5b6af5c984b74a0e..5f951bfde42aa0df331b69d0eed87566
+ * <p> + * <p>
+ * Examples: + * Examples:
+ * - When standing on a slab under an ice block, this will return the position of the slab. + * - 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 + * @return block currently supporting the entity, or null if a block is currently not supporting the entity
+ */ + */