public abstract class AbstractEggGroup extends java.lang.Object implements EggGroup
EggGroup| Modifier and Type | Field and Description |
|---|---|
protected int |
index |
protected java.lang.String |
name |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEggGroup(int index,
java.lang.String name) |
| 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(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
|
java.lang.String |
getTranslationKey() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanBreedWithgetLocalizedName, getTranslatedNamepublic int getIndex()
EggGrouppublic java.lang.String getKey()
EggGrouppublic boolean canBreed(Gender first, Gender second)
EggGroupGenderpublic boolean canBreedWith(java.util.List<EggGroup> others)
EggGroupcanBreedWith in interface EggGroupothers - The egg groups being checkedpublic boolean canBreedWith(EggGroup... others)
EggGroupcanBreedWith in interface EggGroupothers - The egg groups being checkedpublic java.lang.String getTranslationKey()
getTranslationKey in interface ITranslatable