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
ConstructorDescriptionUniversalEggGroup
(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, hashCode
Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
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
-
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:EggGroup
Checks if the twoGender
- Specified by:
canBreed
in interfaceEggGroup
- Overrides:
canBreed
in classAbstractEggGroup
- Parameters:
first
- The first gendersecond
- The second gender- Returns:
- True if they can breed
-
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)- Specified by:
canBreedWith
in interfaceEggGroup
- Overrides:
canBreedWith
in classBasicEggGroup
- Parameters:
other
- The other egg group to check- Returns:
- True if they can breed together, false if not
-