Class DayCareEvent
java.lang.Object
net.minecraftforge.eventbus.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.minecraftforge.eventbus.api.Event
All events relating to
DayCareBlock
and breeding- Since:
- 24/06/2022
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Event fired just after the player collects the egg (and parents) from the DayCare This is not cancellablestatic class
The event fired just after the condition status response packet is sent This is not cancellablestatic class
Fired just after the duration of a day care box is set This is not cancellablestatic class
This event is fired just after the response packet is sent to the client with the calculated child This is not cancellablestatic class
Event fired just after a Pokemon is added to the box This is not cancellablestatic class
This event is fired just after the breeding timer begins This is not cancellablestatic class
Event 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 class
The 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 class
Fired just before the duration of a day care box is set This is not cancellablestatic class
This 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 class
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)static class
This event is fired just before the breeding timer begins Cancelling this will prevent it from beginningstatic class
Event fired when a timer is complete for a box (for online players only)Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ModifierConstructorDescriptionprotected
DayCareEvent
(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.ServerPlayer
Gets the player relating to the DayCare eventMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-