Skip to main content

ENTITY_COUNTER

Static ENTITY_COUNTER 

Source
static ENTITY_COUNTER: LazyLock<SyncMutex<i32>>
Expand description

Global counter for allocating unique entity IDs.

Mirrors vanilla’s Entity.ENTITY_COUNTER. Each new entity increments this counter to get a unique network ID. Starts at 1 (0 is reserved).