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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the twoGender
boolean
canBreedWith
(EggGroup... others) Checks if this egg group can breed with any of the given other egg groups Will return true if a single one worksboolean
canBreedWith
(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 worksint
getIndex()
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, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.egg.EggGroup
canBreedWith
Methods 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:EggGroup
Gets the index of the egg group from the game's index -
getKey
Description copied from interface:EggGroup
Gets the unique identifying key of the egg -
canBreed
Description copied from interface:EggGroup
Checks if the twoGender
-
canBreedWith
Description copied from interface:EggGroup
Checks if this egg group can breed with any of the given other egg groups Will return true if a single one works- Specified by:
canBreedWith
in interfaceEggGroup
- Parameters:
others
- The egg groups being checked- Returns:
- True if it works
-
canBreedWith
Description copied from interface:EggGroup
Checks if this egg group can breed with any of the given other egg groups Will return true if a single one works- Specified by:
canBreedWith
in interfaceEggGroup
- Parameters:
others
- The egg groups being checked- Returns:
- True if it works
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceITranslatable
-