Class DayCareEvent.PreCollect

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent
com.pixelmonmod.pixelmon.api.daycare.event.DayCareEvent.PreCollect
Enclosing class:
DayCareEvent

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

    • parentOne

      protected Pokemon parentOne
    • parentTwo

      protected Pokemon parentTwo
    • childGiven

      protected Pokemon childGiven
    • addToHistory

      protected boolean addToHistory
  • 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 Setting to null means no parent will be returned
      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 Setting to null means no parent will be returned
      Parameters:
      parentTwo - The second parent
    • getChildGiven

      public Pokemon getChildGiven()
      Gets the child that will be created
      Returns:
      The child given
    • setChildGiven

      public void setChildGiven(Pokemon childCreated)
      Sets the child that will be given
      Parameters:
      childCreated - The child given
    • shouldAddToHistory

      public boolean shouldAddToHistory()
      If the child given should be added to the player's breeding history Defaults to true
      Returns:
      If true it will be added to their history
    • setAddToHistory

      public void setAddToHistory(boolean addToHistory)
      Sets if the child given should be added to the player's breeding history Defaults to true
      Parameters:
      addToHistory - If true it will be added to their history