Class DayCareEvent.PostEggCalculate

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

public static class DayCareEvent.PostEggCalculate extends DayCareEvent
This event is fired just after the response packet is sent to the client with the calculated child This is not cancellable
  • Field Details

    • parentOne

      protected final Pokemon parentOne
    • parentTwo

      protected final Pokemon parentTwo
    • calculatedChild

      protected final Pokemon calculatedChild
    • childExists

      protected final boolean childExists
    • showChild

      protected final boolean showChild
  • Constructor Details

    • PostEggCalculate

      public PostEggCalculate(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party, Pokemon parentOne, Pokemon parentTwo, Pokemon calculatedChild, boolean childExists, boolean showChild)
  • Method Details

    • getParentOne

      public Pokemon getParentOne()
      Gets the "parent one" used in the calculation
      Returns:
      The first parent
    • getParentTwo

      public Pokemon getParentTwo()
      Gets the "parent two" used in the calculation
      Returns:
      The second parent
    • getCalculatedChild

      public Pokemon getCalculatedChild()
      Gets the child calculated by the BreedingLogicProxy
      Returns:
      The child
    • isChildExists

      public boolean isChildExists()
      If a child can be created from these parents
      Returns:
      If a child can be created
    • isShowChild

      public boolean isShowChild()
      Sets if the child can be seen
      Returns:
      true if the child is shown then return true