public interface BreedingLogicFactory
BreedingLogicProxy
Modifier and Type | Method and Description |
---|---|
Stats |
calculateForm(Pokemon parentOne,
Pokemon parentTwo,
Species child)
Calculates the form of the child using the two parents
|
java.lang.String |
calculatePalette(Pokemon parentOne,
Pokemon parentTwo,
Species child)
Calculates the palette of the child using the two parents
|
Species |
calculateSpecies(Pokemon parentOne,
Pokemon parentTwo)
Calculates the species created by the two parent Pokemons
|
boolean |
canBreed(Pokemon parentOne,
Pokemon parentTwo)
Checks if the two Pokemon can breed
|
boolean |
canLearnVoltTackle(Species species,
Pokemon parentOne,
Pokemon parentTwo)
If the pokemon can learn volt tackle move
|
boolean |
checkIncense(net.minecraft.item.Item itemTypeParent,
net.minecraft.item.Item itemTypeOther,
Pokemon parentForEggLine,
net.minecraft.item.Item neededItem,
RegistryValue<Species> baby,
RegistryValue<Species>... parents)
Checks the incense
|
Pokemon |
findFather(Pokemon parentOne,
Pokemon parentTwo)
Obtains the father of the two parents
|
Pokemon |
findMother(Pokemon parentOne,
Pokemon parentTwo)
Obtains the mother of the two parents
|
Ability |
getEggAbility(Stats form,
Pokemon parentOne,
Pokemon parentTwo)
Calculates the new Ability for the Pokemon from the two parents
|
com.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Boolean> |
getEggAbilitySlot(Stats form,
Pokemon parentOne,
Pokemon parentTwo)
Calculates the new Ability slot for the Pokemon from the two parents
|
EnumGrowth |
getEggGrowth(Pokemon parentOne,
Pokemon parentTwo)
Calculates the new Growth for the Pokemon from the two parents
|
java.util.List<ImmutableAttack> |
getEggMoves(Stats egg,
Pokemon parent,
java.util.Set<ImmutableAttack> allEggMoves)
Gets the egg moves
|
Moveset |
getEggMoveset(Stats egg,
Pokemon parentOne,
Pokemon parentTwo)
Calculates the egg move set
|
java.util.List<ImmutableAttack> |
getFathersTMHMTutorMoves(Stats egg,
Pokemon father)
Gets the father's TM, HM and Tutor moves
|
Moveset |
getFirstFourMoves(java.util.List<ImmutableAttack> masterAttackList)
Gets the first four moves from the attack list given
|
IVStore |
getIVsForEgg(Pokemon parentOne,
Pokemon parentTwo)
Calculates the new IVs for the Pokemon from the two parents
|
Nature |
getNatureForEgg(Pokemon parentOne,
Pokemon parentTwo)
Calculates the new Nature for the Pokemon from the two parents
|
PokeBall |
getPokeBall(Pokemon parentOne,
Pokemon parentTwo)
Calculates the new PokeBall for the Pokemon from the two parents
|
java.util.List<ImmutableAttack> |
getPokemonLevelupMoves(Stats egg,
Pokemon parentOne,
Pokemon parentTwo)
Gets the level up moves for the egg
|
java.util.Optional<Pokemon> |
makeEgg(Pokemon parentOne,
Pokemon parentTwo)
Attempts to make an egg using the two given Pokemon
|
Pokemon |
makeRandomEgg(Pokemon parentOne,
Pokemon parentTwo)
Makes a random Pokemon egg using the two parents for stats such as IVs and abilities
|
boolean |
shouldEggBeShiny(Pokemon parentOne,
Pokemon parentTwo)
Check used to determine if the child should be shiny
|
java.util.Optional<Pokemon> makeEgg(Pokemon parentOne, Pokemon parentTwo)
parentOne
- The first parentparentTwo
- The second parentStats calculateForm(Pokemon parentOne, Pokemon parentTwo, Species child)
parentOne
- The first parentparentTwo
- The second parentchild
- The child speciesjava.lang.String calculatePalette(Pokemon parentOne, Pokemon parentTwo, Species child)
parentOne
- The first parentparentTwo
- The second parentchild
- The child speciesboolean canBreed(Pokemon parentOne, Pokemon parentTwo)
parentOne
- The first parentparentTwo
- The second parentPokemon makeRandomEgg(Pokemon parentOne, Pokemon parentTwo)
parentOne
- The first parentparentTwo
- The second parentSpecies calculateSpecies(Pokemon parentOne, Pokemon parentTwo)
parentOne
- The first parentparentTwo
- The second parentIVStore getIVsForEgg(Pokemon parentOne, Pokemon parentTwo)
parentOne
- First parentparentTwo
- Second parentNature getNatureForEgg(Pokemon parentOne, Pokemon parentTwo)
parentOne
- First parentparentTwo
- Second parentPokeBall getPokeBall(Pokemon parentOne, Pokemon parentTwo)
parentOne
- First parentparentTwo
- Second parentEnumGrowth getEggGrowth(Pokemon parentOne, Pokemon parentTwo)
parentOne
- First parentparentTwo
- Second parentAbility getEggAbility(Stats form, Pokemon parentOne, Pokemon parentTwo)
parentOne
- First parentparentTwo
- Second parentcom.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Boolean> getEggAbilitySlot(Stats form, Pokemon parentOne, Pokemon parentTwo)
parentOne
- First parentparentTwo
- Second parentboolean shouldEggBeShiny(Pokemon parentOne, Pokemon parentTwo)
parentOne
- The first parentparentTwo
- The second parentMoveset getEggMoveset(Stats egg, Pokemon parentOne, Pokemon parentTwo)
egg
- The egg's formparentOne
- The first parentparentTwo
- The second parentjava.util.List<ImmutableAttack> getPokemonLevelupMoves(Stats egg, Pokemon parentOne, Pokemon parentTwo)
egg
- The form of the eggparentOne
- The first parentparentTwo
- The second parentMoveset getFirstFourMoves(java.util.List<ImmutableAttack> masterAttackList)
masterAttackList
- The attack listjava.util.List<ImmutableAttack> getEggMoves(Stats egg, Pokemon parent, java.util.Set<ImmutableAttack> allEggMoves)
egg
- The egg's formparent
- The parentallEggMoves
- The child's egg movesboolean canLearnVoltTackle(Species species, Pokemon parentOne, Pokemon parentTwo)
species
- The egg speciesparentOne
- The first parentparentTwo
- The second parentjava.util.List<ImmutableAttack> getFathersTMHMTutorMoves(Stats egg, Pokemon father)
egg
- The eggfather
- The fatherPokemon findFather(Pokemon parentOne, Pokemon parentTwo)
parentOne
- The first parentparentTwo
- The second parentPokemon findMother(Pokemon parentOne, Pokemon parentTwo)
parentOne
- The first parentparentTwo
- The second parentboolean checkIncense(net.minecraft.item.Item itemTypeParent, net.minecraft.item.Item itemTypeOther, Pokemon parentForEggLine, net.minecraft.item.Item neededItem, RegistryValue<Species> baby, RegistryValue<Species>... parents)
itemTypeParent
- The parent's itemitemTypeOther
- The other itemparentForEggLine
- The egg line itemneededItem
- The required itembaby
- The baby typeparents
- The parents types