I have string "SHEEP" from config.yml and I want to get EntityType from this, but function EntityType.fromName() is deprecated. What should I do?
It is deprecated because it can return magic values (as ist sais in the description). Use EntityType.valueOf(); since the name in your config seems to match the enum-constant exactly