Class UndiscoveredEggGroup
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.UndiscoveredEggGroup
- All Implemented Interfaces:
EggGroup,ITranslatable
An extension of the
BasicEggGroup that rejects all other egg groups as a partner- Since:
- 24/06/2022
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
index, name -
Constructor Summary
ConstructorsConstructorDescriptionUndiscoveredEggGroup(int index, String name) Basic constructor taking the index and the name -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the twoGenderbooleancanBreedWith(EggGroup other) Checks if the other egg group can breed with this egg group Make sure it is consistent in both directions (i.e.booleancanBreedWith(EggGroup... others) Checks if this egg group can breed with any of the given other egg groups Will return true if a single one worksbooleancanBreedWith(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 worksMethods inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.BasicEggGroup
equals, hashCodeMethods inherited from class com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
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
-
UndiscoveredEggGroup
Basic constructor taking the index and the name- Parameters:
index- The index of the egg groupname- The name of the egg group
-
UndiscoveredEggGroup
public UndiscoveredEggGroup()
-
-
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 this egg group can breed with any of the given other egg groups Will return true if a single one works- Specified by:
canBreedWithin interfaceEggGroup- Overrides:
canBreedWithin classAbstractEggGroup- Parameters:
others- The egg groups being checked- Returns:
- True if it works
-
canBreedWith
Description copied from interface:EggGroupChecks if this egg group can breed with any of the given other egg groups Will return true if a single one works- Specified by:
canBreedWithin interfaceEggGroup- Overrides:
canBreedWithin classAbstractEggGroup- Parameters:
others- The egg groups being checked- Returns:
- True if it works
-
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
-