public abstract class DayCareEvent
extends net.minecraftforge.eventbus.api.Event
DayCareBlock
and breedingModifier and Type | Class and Description |
---|---|
static class |
DayCareEvent.HourGlassUsed |
static class |
DayCareEvent.PostCollect
Event fired just after the player collects the egg (and parents) from the DayCare
This is not cancellable
|
static class |
DayCareEvent.PostConditionStatusUpdate
The event fired just after the condition status response packet is sent
This is not cancellable
|
static class |
DayCareEvent.PostDurationCalculate
Fired just after the duration of a day care box is set
This is not cancellable
|
static class |
DayCareEvent.PostEggCalculate
This event is fired just after the response packet is sent to the client with the calculated child
This is not cancellable
|
static class |
DayCareEvent.PostPokemonAdd
Event fired just after a Pokemon is added to the box
This is not cancellable
|
static class |
DayCareEvent.PostTimerBegin
This event is fired just after the breeding timer begins
This is not cancellable
|
static class |
DayCareEvent.PreCollect
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 |
DayCareEvent.PreConditionStatusUpdate
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 |
DayCareEvent.PreDurationCalculate
Fired just before the duration of a day care box is set
This is not cancellable
|
static class |
DayCareEvent.PreEggCalculate
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 |
DayCareEvent.PrePokemonAdd
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 |
DayCareEvent.PreTimerBegin
This event is fired just before the breeding timer begins
Cancelling this will prevent it from beginning
|
static class |
DayCareEvent.TimerComplete
Event fired when a timer is complete for a box (for online players only)
|
Modifier | Constructor and Description |
---|---|
protected |
DayCareEvent(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party) |
Modifier and Type | Method and Description |
---|---|
PlayerDayCare |
getDayCare()
Gets the player's DayCare
|
PlayerPartyStorage |
getParty()
Gets the party relating to the DayCare event
|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
Gets the player relating to the DayCare event
|
protected DayCareEvent(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party)
public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public PlayerPartyStorage getParty()
public PlayerDayCare getDayCare()