Class DayCareEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
- Direct Known Subclasses:
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
public abstract class DayCareEvent
extends net.neoforged.bus.api.Event
All events relating to
DayCareBlock and breeding- Since:
- 24/06/2022
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classEvent fired just after the player collects the egg (and parents) from the DayCare This is not cancellablestatic classThe event fired just after the condition status response packet is sent This is not cancellablestatic classFired just after the duration of a day care box is set This is not cancellablestatic classThis event is fired just after the response packet is sent to the client with the calculated child This is not cancellablestatic classEvent fired just after a Pokemon is added to the box This is not cancellablestatic classThis event is fired just after the breeding timer begins This is not cancellablestatic classEvent fired just before the player collects the egg (and parents) from the DayCare If cancelled nothing happens (effectively cancelling the user's UI click)static classThe event fired just before the condition status response packet is sent Cancelling will prevent the response from happening (will look weird on the client's UI)static classFired just before the duration of a day care box is set This is not cancellablestatic classThis event is fired just before the response packet is sent to the client with the calculated child Cancelling this will prevent a response (causing the event to be fired more times as the client continues to request a response)static classEvent 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)static classThis event is fired just before the breeding timer begins Cancelling this will prevent it from beginningstatic classEvent fired when a timer is complete for a box (for online players only) -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDayCareEvent(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party) -
Method Summary
Modifier and TypeMethodDescriptionGets the player's DayCaregetParty()Gets the party relating to the DayCare eventnet.minecraft.server.level.ServerPlayerGets the player relating to the DayCare event
-
Constructor Details
-
DayCareEvent
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer()Gets the player relating to the DayCare event- Returns:
- The player
-
getParty
Gets the party relating to the DayCare event- Returns:
- the player's party
-
getDayCare
Gets the player's DayCare- Returns:
- The DayCare
-