Class DayCareEvent.PrePokemonAdd
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent.PrePokemonAdd
- Enclosing class:
- DayCareEvent
Event fired just before a Pokemon is added to the box
Cancelling will not add the Pokemon to the box and not send a reply to the client (basically cancelling the click)
-
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.TimerCompleteNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrePokemonAdd(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon childCreated) -
Method Summary
Modifier and TypeMethodDescriptionGets the child that will be createdGets the first parentGets the second parentvoidsetChildCreated(Pokemon childCreated) Sets the child that will be created (will be turned into an egg if not)voidsetParentOne(Pokemon parentOne) Sets the first parentvoidsetParentTwo(Pokemon parentTwo) Sets the second parentMethods inherited from class com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
getDayCare, getParty, getPlayerMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
parentOne
-
parentTwo
-
childCreated
-
-
Constructor Details
-
PrePokemonAdd
public PrePokemonAdd(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon childCreated)
-
-
Method Details
-
getParentOne
Gets the first parent- Returns:
- the first parent
-
setParentOne
Sets the first parent- Parameters:
parentOne- The first parent
-
getParentTwo
Gets the second parent- Returns:
- The second parent
-
setParentTwo
Sets the second parent- Parameters:
parentTwo- The second parent
-
getChildCreated
Gets the child that will be created- Returns:
- The child created
-
setChildCreated
Sets the child that will be created (will be turned into an egg if not)- Parameters:
childCreated- The child created
-