Class DayCareEvent.PostCollect
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent.PostCollect
- Enclosing class:
- DayCareEvent
Event fired just after the player collects the egg (and parents) from the DayCare
This is not cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.daycare.event.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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPostCollect
(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon childGiven, boolean addToHistory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
If the child given should be added to the player's breeding history Defaults to trueGets the child that will be createdGets the first parentGets the second parentMethods inherited from class com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
getDayCare, getParty, getPlayer
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
parentOne
-
parentTwo
-
childGiven
-
addToHistory
protected final boolean addToHistory
-
-
Constructor Details
-
PostCollect
public PostCollect(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon childGiven, boolean addToHistory)
-
-
Method Details
-
getParentOne
Gets the first parent- Returns:
- the first parent
-
getParentTwo
Gets the second parent- Returns:
- The second parent
-
getChildGiven
Gets the child that will be created- Returns:
- The child given
-
addedToHistory
public boolean addedToHistory()If the child given should be added to the player's breeding history Defaults to true- Returns:
- If true it was added to their history
-