-
Any entities that extend
TameableEntity
orAbstractHorseEntity
works. -
To jump to the else branch that performs the lookup:
HandItems[0].tag.OwnerUUID
must not beTAG_String
.HandItems[0].tag.OwnerUUID
andHandItems[0].tag.Owner
must 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");