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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
    Event fired just after the player collects the egg (and parents) from the DayCare This is not cancellable
    static class 
    The event fired just after the condition status response packet is sent This is not cancellable
    static class 
    Fired just after the duration of a day care box is set This is not cancellable
    static class 
    This event is fired just after the response packet is sent to the client with the calculated child This is not cancellable
    static class 
    Event fired just after a Pokemon is added to the box This is not cancellable
    static class 
    This event is fired just after the breeding timer begins This is not cancellable
    static 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 cancellable
    static 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 beginning
    static 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    DayCareEvent(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the player's DayCare
    Gets the party relating to the DayCare event
    net.minecraft.server.level.ServerPlayer
    Gets the player relating to the DayCare event

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DayCareEvent

      protected DayCareEvent(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
      Gets the player relating to the DayCare event
      Returns:
      The player
    • getParty

      public PlayerPartyStorage getParty()
      Gets the party relating to the DayCare event
      Returns:
      the player's party
    • getDayCare

      public PlayerDayCare getDayCare()
      Gets the player's DayCare
      Returns:
      The DayCare