Class DayCareEvent.PostEggCalculate
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent.PostEggCalculate
- Enclosing class:
- DayCareEvent
This event is fired just after the response packet is sent to the client with the calculated child
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
ConstructorDescriptionPostEggCalculate
(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon calculatedChild, boolean childExists, boolean showChild) -
Method Summary
Modifier and TypeMethodDescriptionGets the child calculated by theBreedingLogicProxy
Gets the "parent one" used in the calculationGets the "parent two" used in the calculationboolean
If a child can be created from these parentsboolean
Sets if the child can be seenMethods 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
-
calculatedChild
-
childExists
protected final boolean childExists -
showChild
protected final boolean showChild
-
-
Constructor Details
-
PostEggCalculate
public PostEggCalculate(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon calculatedChild, boolean childExists, boolean showChild)
-
-
Method Details
-
getParentOne
Gets the "parent one" used in the calculation- Returns:
- The first parent
-
getParentTwo
Gets the "parent two" used in the calculation- Returns:
- The second parent
-
getCalculatedChild
Gets the child calculated by theBreedingLogicProxy
- Returns:
- The child
-
isChildExists
public boolean isChildExists()If a child can be created from these parents- Returns:
- If a child can be created
-
isShowChild
public boolean isShowChild()Sets if the child can be seen- Returns:
- true if the child is shown then return true
-