public static class DayCareEvent.PreEggCalculate extends DayCareEvent
DayCareEvent.HourGlassUsed, DayCareEvent.PostCollect, DayCareEvent.PostConditionStatusUpdate, DayCareEvent.PostDurationCalculate, DayCareEvent.PostEggCalculate, DayCareEvent.PostPokemonAdd, DayCareEvent.PostTimerBegin, DayCareEvent.PreCollect, DayCareEvent.PreConditionStatusUpdate, DayCareEvent.PreDurationCalculate, DayCareEvent.PreEggCalculate, DayCareEvent.PrePokemonAdd, DayCareEvent.PreTimerBegin, DayCareEvent.TimerComplete
Modifier and Type | Field and Description |
---|---|
protected Pokemon |
calculatedChild |
protected boolean |
childExists |
protected Pokemon |
parentOne |
protected Pokemon |
parentTwo |
protected boolean |
showChild |
protected boolean |
showPotentialShiny |
Constructor and Description |
---|
PreEggCalculate(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party,
Pokemon parentOne,
Pokemon parentTwo,
Pokemon calculatedChild,
boolean childExists,
boolean showChild,
boolean showPotentialShiny) |
Modifier and Type | Method and Description |
---|---|
Pokemon |
getCalculatedChild()
Gets the child calculated by the
BreedingLogicProxy |
Pokemon |
getParentOne()
Gets the "parent one" used in the calculation
|
Pokemon |
getParentTwo()
Gets the "parent two" used in the calculation
|
boolean |
isChildExists()
If a child can be created from these parents
|
boolean |
isShowChild()
Sets if the child can be seen
|
boolean |
isShowPotentialShiny()
Sets if the child can be seen
|
void |
setCalculatedChild(Pokemon calculatedChild)
Sets the child
|
void |
setChildExists(boolean childExists)
Sets if a child can be created or not
|
void |
setShowChild(boolean showChild)
Sets if the child should be shown in the GUI
|
void |
setShowPotentialShiny(boolean showPotentialShiny)
Sets if a shiny child should be shown in the GUI
|
getDayCare, getParty, getPlayer
protected final Pokemon parentOne
protected final Pokemon parentTwo
protected Pokemon calculatedChild
protected boolean childExists
protected boolean showChild
protected boolean showPotentialShiny
public PreEggCalculate(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon calculatedChild, boolean childExists, boolean showChild, boolean showPotentialShiny)
public Pokemon getParentOne()
public Pokemon getParentTwo()
public Pokemon getCalculatedChild()
BreedingLogicProxy
public void setCalculatedChild(Pokemon calculatedChild)
calculatedChild
- The new childpublic boolean isChildExists()
public void setChildExists(boolean childExists)
childExists
- If the child can be createdpublic boolean isShowChild()
public void setShowChild(boolean showChild)
showChild
- True if you want to show the childpublic boolean isShowPotentialShiny()
public void setShowPotentialShiny(boolean showPotentialShiny)
showPotentialShiny
- True if you want to show shiny children