BREED
Obtaining the data of a race
public boolean breedExist(String id) //For breeds as input parameter the exact name (id) is required.
{
if(Bukkit.getPluginManager().getPlugin("UltraBreeds") == null) return false;
Breed breed = UltraBreeds.getInstance().getBreedsManager().getBreedById(id);
return breed != null;
}
This method checks if cached data exists for that race.
Although the race could also be obtained from the player.
public boolean breedExist(UUID player)
{
if(Bukkit.getPluginManager().getPlugin("UltraBreeds") == null) return false;
Breed breed = UltraBreeds.getInstance().getBreedsManager().getBreedByUser(player);
return breed != null;
}
Last updated