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, wait
canBreedWith
getLocalizedName, getTranslatedName
public int getIndex()
EggGroup
public java.lang.String getKey()
EggGroup
public boolean canBreed(Gender first, Gender second)
EggGroup
Gender
public boolean canBreedWith(java.util.List<EggGroup> others)
EggGroup
canBreedWith
in interface EggGroup
others
- The egg groups being checkedpublic boolean canBreedWith(EggGroup... others)
EggGroup
canBreedWith
in interface EggGroup
others
- The egg groups being checkedpublic java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable