public class BasicEggGroup extends AbstractEggGroup
index, name
Constructor and Description |
---|
BasicEggGroup(int index,
java.lang.String name)
Basic constructor taking the index and the name
|
Modifier and Type | Method and Description |
---|---|
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 |
equals(java.lang.Object obj) |
int |
hashCode() |
canBreed, canBreedWith, canBreedWith, getIndex, getKey, getTranslationKey
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLocalizedName, getTranslatedName
public BasicEggGroup(int index, java.lang.String name)
index
- The index of the egg groupname
- The name of the egg grouppublic boolean canBreedWith(EggGroup other)
EggGroup
other
- The other egg group to checkpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object