Class BasicEggGroup
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.BasicEggGroup
- All Implemented Interfaces:
EggGroup
,ITranslatable
- Direct Known Subclasses:
UndiscoveredEggGroup
,UniversalEggGroup
- Since:
- 24/06/2022
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
index, name
-
Constructor Summary
ConstructorDescriptionBasicEggGroup
(int index, String name) Basic constructor taking the index and the name -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
int
hashCode()
Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
canBreed, canBreedWith, canBreedWith, getIndex, getKey, getTranslationKey
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Constructor Details
-
BasicEggGroup
Basic constructor taking the index and the name- Parameters:
index
- The index of the egg groupname
- The name of the egg group
-
-
Method Details
-
canBreedWith
Description copied from interface:EggGroup
Checks if the other egg group can breed with this egg group Make sure it is consistent in both directions (i.e. if it returns true in this one, it should return true in the other one)- Parameters:
other
- The other egg group to check- Returns:
- True if they can breed together, false if not
-
equals
-
hashCode
public int hashCode()
-