public class UniversalEggGroup extends BasicEggGroup
BasicEggGroup that accepts all other egg groups as a partner except the
UndiscoveredEggGroupindex, name| Constructor and Description |
|---|
UniversalEggGroup() |
UniversalEggGroup(int index,
java.lang.String name)
Basic constructor taking the index and the name
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBreed(Gender first,
Gender second)
Checks if the two
Gender |
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.
|
equals, hashCodecanBreedWith, canBreedWith, getIndex, getKey, getTranslationKeyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetLocalizedName, getTranslatedNamepublic UniversalEggGroup(int index,
java.lang.String name)
index - The index of the egg groupname - The name of the egg grouppublic UniversalEggGroup()
public boolean canBreed(Gender first, Gender second)
EggGroupGendercanBreed in interface EggGroupcanBreed in class AbstractEggGroupfirst - The first gendersecond - The second genderpublic boolean canBreedWith(EggGroup other)
EggGroupcanBreedWith in interface EggGroupcanBreedWith in class BasicEggGroupother - The other egg group to check