mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-09 13:19:25 +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
@ -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 New Issue
Block a user