/** * Get entity with the specified id. * * Resolves entity id to the unique entity instance. <em>This method may * return an entity even if it isn't active in the world.</em> Make sure to * not retain id's of deleted entities. * * @param entityId * the entities id * @return the specific entity */ public Entity getEntity(int entityId) { return em.getEntity(entityId); }
/** * Get entity with the specified id. * * Resolves entity id to the unique entity instance. <em>This method may * return an entity even if it isn't active in the world.</em> Make sure to * not retain id's of deleted entities. * * @param entityId * the entities id * @return the specific entity */ public Entity getEntity(int entityId) { return em.getEntity(entityId); }