Expose the Entity Counter to allow plugins to use valid and non-conflicting Entity Ids

This commit is contained in:
MeFisto94 2020-08-28 01:41:31 +02:00
parent 110071a0e6
commit 64f9dff6ef

View file

@ -168,5 +168,12 @@ public interface UnsafeValues {
byte[] serializeItem(ItemStack item);
ItemStack deserializeItem(byte[] data);
/**
* Creates and returns the next EntityId available.
* <p>
* Use this when sending custom packets, so that there are no collisions on the client or server.
*/
public int nextEntityId();
// Paper end
}