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
ConstructorDescriptionUndiscoveredEggGroup
(int index, String name) Basic constructor taking the index and the name -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the twoGender
boolean
canBreedWith
(EggGroup other) Checks if the other egg group can breed with this egg group Make sure it is consistent in both directions (i.e.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 worksMethods 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
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
-
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: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 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
- Overrides:
canBreedWith
in classAbstractEggGroup
- 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
- Overrides:
canBreedWith
in classAbstractEggGroup
- Parameters:
others
- The egg groups being checked- Returns:
- True if it works
-
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
-