MCPcopy Create free account
hub / github.com/dabing1022/Blog / born

Method born

Processing/game2dai/entities/BaseEntity.java:308–312  ·  view source on GitHub ↗

This is the only safe way to add an entity to the World object once initialisation has finished and the game/simulation is in play. It does not add the entity directly but schedules it for addition at the start of the world update() method. During initialisation (i.e. setup) it is recommended t

(World world, double timeToLive)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

birthMethod · 0.80

Tested by

no test coverage detected