Class DayCareEvent.PostConditionStatusUpdate

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

public static class DayCareEvent.PostConditionStatusUpdate extends DayCareEvent
The event fired just after the condition status response packet is sent This is not cancellable
  • Field Details

    • box

      protected final DayCareBox box
    • condition

      protected final DayCareCondition condition
    • requirement

      protected final DayCareRequirement requirement
    • canConsume

      protected final boolean canConsume
    • errorMessage

      protected final net.minecraft.network.chat.Component errorMessage
  • Constructor Details

  • Method Details

    • getBox

      public DayCareBox getBox()
      Gets the box this is in relation to
      Returns:
      The box
    • getCondition

      public DayCareCondition getCondition()
      Gets the condition being used
      Returns:
      The condition
    • getRequirement

      public DayCareRequirement getRequirement()
      Gets the requirement being used
      Returns:
      The daycare requirement being used
    • isCanConsume

      public boolean isCanConsume()
      If the inventory can consume the requirement (i.e. they have met the requirement condition)
      Returns:
      if they can consume the requirement
    • getErrorMessage

      public net.minecraft.network.chat.Component getErrorMessage()
      Gets the error message to display to the client Only displayed if DayCareEvent.PreConditionStatusUpdate.isCanConsume() is false
      Returns:
      The error message