Class RibbonEvent.ReceiveRibbon.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
RibbonEvent.ReceiveRibbon

public static class RibbonEvent.ReceiveRibbon.Pre extends RibbonEvent.ReceiveRibbon
Fired just before the ribbon is given Here you can modify the ribbon given, or if it will be set as the display ribbon Cancelling this will prevent the ribbon being given or displayed
  • Constructor Details

    • Pre

      public Pre(Pokemon pokemon, Ribbon ribbon, boolean shouldDisplay)
  • Method Details

    • setRibbon

      public void setRibbon(Ribbon ribbon)
      Sets the ribbon being given
      Parameters:
      ribbon - The ribbon given
    • setShouldDisplay

      public void setShouldDisplay(boolean shouldDisplay)
      Sets if the ribbon should be set as the displayed ribbon for the Pokemon
      Parameters:
      shouldDisplay - The display