Class UniversalEggGroup
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.BasicEggGroup
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.UniversalEggGroup
- All Implemented Interfaces:
EggGroup,ITranslatable
An extension of the
BasicEggGroup that accepts all other egg groups as a partner except the
UndiscoveredEggGroup- Since:
- 24/06/2022
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
index, name -
Constructor Summary
ConstructorsConstructorDescriptionUniversalEggGroup(int index, String name) Basic constructor taking the index and the name -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.BasicEggGroup
equals, hashCodeMethods inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
canBreedWith, canBreedWith, getIndex, getKey, getTranslationKeyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Constructor Details
-
UniversalEggGroup
Basic constructor taking the index and the name- Parameters:
index- The index of the egg groupname- The name of the egg group
-
UniversalEggGroup
public UniversalEggGroup()
-
-
Method Details
-
canBreed
Description copied from interface:EggGroupChecks if the twoGender- Specified by:
canBreedin interfaceEggGroup- Overrides:
canBreedin classAbstractEggGroup- Parameters:
first- The first gendersecond- The second gender- Returns:
- True if they can breed
-
canBreedWith
Description copied from interface:EggGroupChecks 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)- Specified by:
canBreedWithin interfaceEggGroup- Overrides:
canBreedWithin classBasicEggGroup- Parameters:
other- The other egg group to check- Returns:
- True if they can breed together, false if not
-