Repository navigation
Clarify mob persistence API - #14312
TiggerTakkyTTT wants to merge 2 commits into
Conversation
|
The |
Yeah, good point. isPersistent() is for whether the entity gets saved, while this is the mob flag used for distance despawning, so the names would be pretty easy to confuse. Do you have a name you’d prefer for this? |
|
Personally I don't think new methods are needed at all and just a few tweaks in javadocs would be enough. But that's for the maintainers to decide |
|
Hmmm the NMS method its not only used for distance... its used for normal despawn (ex: Skeleton Horse Trap when time pass) but its true can be confusing with the Bukkit API for persistance... if others wanna give an opinion... for me feels fine add the new method but need a way for avoid confusing with the Bukkit method... |
Fixes #13980
Adds
isPersistenceRequired()andsetPersistenceRequired()to Mob