mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Expose the Entity Counter to allow plugins to use valid and non-conflicting Entity Ids
This commit is contained in:
parent
110071a0e6
commit
64f9dff6ef
1 changed files with 7 additions and 0 deletions
|
@ -168,5 +168,12 @@ public interface UnsafeValues {
|
||||||
byte[] serializeItem(ItemStack item);
|
byte[] serializeItem(ItemStack item);
|
||||||
|
|
||||||
ItemStack deserializeItem(byte[] data);
|
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
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue