public static class DayCareEvent.PreCollect 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 boolean |
addToHistory |
protected Pokemon |
childGiven |
protected Pokemon |
parentOne |
protected Pokemon |
parentTwo |
Constructor and Description |
---|
PreCollect(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party,
Pokemon parentOne,
Pokemon parentTwo,
Pokemon childGiven) |
Modifier and Type | Method and Description |
---|---|
Pokemon |
getChildGiven()
Gets the child that will be created
|
Pokemon |
getParentOne()
Gets the first parent
|
Pokemon |
getParentTwo()
Gets the second parent
|
void |
setAddToHistory(boolean addToHistory)
Sets if the child given should be added to the player's breeding history
Defaults to true
|
void |
setChildGiven(Pokemon childCreated)
Sets the child that will be given
|
void |
setParentOne(Pokemon parentOne)
Sets the first parent
Setting to null means no parent will be returned
|
void |
setParentTwo(Pokemon parentTwo)
Sets the second parent
Setting to null means no parent will be returned
|
boolean |
shouldAddToHistory()
If the child given should be added to the player's breeding history
Defaults to true
|
getDayCare, getParty, getPlayer
protected Pokemon parentOne
protected Pokemon parentTwo
protected Pokemon childGiven
protected boolean addToHistory
public PreCollect(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon childGiven)
public Pokemon getParentOne()
public void setParentOne(Pokemon parentOne)
parentOne
- The first parentpublic Pokemon getParentTwo()
public void setParentTwo(Pokemon parentTwo)
parentTwo
- The second parentpublic Pokemon getChildGiven()
public void setChildGiven(Pokemon childCreated)
childCreated
- The child givenpublic boolean shouldAddToHistory()
public void setAddToHistory(boolean addToHistory)
addToHistory
- If true it will be added to their history