clarify what getEntityId actually returns (#10839)
This commit is contained in:
parent
ac647513b2
commit
54fbd0cf0c
17 changed files with 53 additions and 33 deletions
|
@ -381,6 +381,26 @@ index 1e56aef9188487d3e9c737e85025f601ab359a72..92cd35c87bad578c2b714761c93a5b72
|
|||
* the portal, it will fly to it before mounting.
|
||||
*/
|
||||
LAND_ON_PORTAL,
|
||||
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
|
||||
index 4e1fb0974d061d5bb64899cac576318d2e6f8bf6..539b3527d0c66611e21712f29b90fba939e661e3 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Entity.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
||||
@@ -180,9 +180,13 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
public List<org.bukkit.entity.Entity> getNearbyEntities(double x, double y, double z);
|
||||
|
||||
/**
|
||||
- * Returns a unique id for this entity
|
||||
+ * Returns the network protocol ID for this entity. This is
|
||||
+ * not to be used as an identifier for the entity except in
|
||||
+ * network-related operations. Use {@link #getUniqueId()} as
|
||||
+ * an entity identifier instead.
|
||||
*
|
||||
- * @return Entity id
|
||||
+ * @return the network protocol ID
|
||||
+ * @see #getUniqueId()
|
||||
*/
|
||||
public int getEntityId();
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/HumanEntity.java b/src/main/java/org/bukkit/entity/HumanEntity.java
|
||||
index fffc478312566bc5c36dbacbdd86341d84d50054..8d97cf229ce1d14232d0342121b5db2230795a1d 100644
|
||||
--- a/src/main/java/org/bukkit/entity/HumanEntity.java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue