Class AbstractEggGroup
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.egg.impl.AbstractEggGroup
- All Implemented Interfaces:
EggGroup,ITranslatable
- Direct Known Subclasses:
BasicEggGroup
Basic abstract implementation of the
EggGroup- Since:
- 24/06/2022
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the twoGenderbooleancanBreedWith(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 worksintgetIndex()Gets the index of the egg group from the game's indexgetKey()Gets the unique identifying key of the eggMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.egg.EggGroup
canBreedWithMethods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Field Details
-
index
protected final int index -
name
-
-
Constructor Details
-
AbstractEggGroup
-
-
Method Details
-
getIndex
public int getIndex()Description copied from interface:EggGroupGets the index of the egg group from the game's index -
getKey
Description copied from interface:EggGroupGets the unique identifying key of the egg -
canBreed
Description copied from interface:EggGroupChecks if the twoGender -
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- 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- Parameters:
others- The egg groups being checked- Returns:
- True if it works
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceITranslatable
-