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

public static class DayCareEvent.PrePokemonAdd extends 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)
  • Field Details

    • parentOne

      protected Pokemon parentOne
    • parentTwo

      protected Pokemon parentTwo
    • childCreated

      protected Pokemon childCreated
  • Constructor Details

  • Method Details

    • getParentOne

      public Pokemon getParentOne()
      Gets the first parent
      Returns:
      the first parent
    • setParentOne

      public void setParentOne(Pokemon parentOne)
      Sets the first parent
      Parameters:
      parentOne - The first parent
    • getParentTwo

      public Pokemon getParentTwo()
      Gets the second parent
      Returns:
      The second parent
    • setParentTwo

      public void setParentTwo(Pokemon parentTwo)
      Sets the second parent
      Parameters:
      parentTwo - The second parent
    • getChildCreated

      public Pokemon getChildCreated()
      Gets the child that will be created
      Returns:
      The child created
    • setChildCreated

      public void setChildCreated(Pokemon childCreated)
      Sets the child that will be created (will be turned into an egg if not)
      Parameters:
      childCreated - The child created