-
Any entities that extend
TameableEntityorAbstractHorseEntityworks. -
To jump to the else branch that performs the lookup:
HandItems[0].tag.OwnerUUIDmust not beTAG_String.HandItems[0].tag.OwnerUUIDandHandItems[0].tag.Ownermust be assigned to the entity together.
String uuid;
if (tag.containsKey("OwnerUUID", TAG_String) /* This method returns false if an actual tag type is different from the specified type */) {
uuid = tag.getString("OwnerUUID");
} else {
String owner = tag.getString("Owner");
uuid = ConfigHandler.getPlayerUuid(getServer(), owner); // The lookup is performed here using `Owner`.
}