public interface EggGroup extends ITranslatable
Modifier and Type | Method and Description |
---|---|
boolean |
canBreed(Gender first,
Gender second)
Checks if the two
Gender |
boolean |
canBreedWith(EggGroup... others)
Checks if this egg group can breed with any of the given other egg groups
Will return true if a single one works
|
boolean |
canBreedWith(EggGroup other)
Checks if the other egg group can breed with this egg group
Make sure it is consistent in both directions (i.e.
|
boolean |
canBreedWith(java.util.List<EggGroup> others)
Checks if this egg group can breed with any of the given other egg groups
Will return true if a single one works
|
int |
getIndex()
Gets the index of the egg group from the game's index
|
java.lang.String |
getKey()
Gets the unique identifying key of the egg
|
getLocalizedName, getTranslatedName, getTranslationKey
int getIndex()
java.lang.String getKey()
boolean canBreed(Gender first, Gender second)
Gender
first
- The first gendersecond
- The second genderboolean canBreedWith(java.util.List<EggGroup> others)
others
- The egg groups being checkedboolean canBreedWith(EggGroup... others)
others
- The egg groups being checkedboolean canBreedWith(EggGroup other)
other
- The other egg group to check