LodeEntitiesAPI.pets() covers pets: mobs with a pet: block, and the collections players own. A player’s collection is only loaded while they are online, so the per-player calls answer empty (or false) for anyone offline.
PetRecord is the pet itself, out or not: its id (stable across summons, evolutions and skins), mobId, name, level, xp, mode, skin, health and backpack. The entity is only its body while it is summoned.
Pets are premium. On the free version no mob is pet-capable, so
ids() is empty and give returns null.Events
Both live inorg.nexomaker.api.event and are cancellable.
LodeEntitiesMobSpawnEvent when their body spawns, and their effect lines get the pet triggers.