Class RibbonEvent.SetDisplayedRibbon.Pre

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

public static class RibbonEvent.SetDisplayedRibbon.Pre extends RibbonEvent.SetDisplayedRibbon
Fired before the ribbon is set. You can use this event to change the displayed ribbon Cancelling this event will prevent the pokemon's displayed ribbon from changing
  • Constructor Details

    • Pre

      public Pre(Pokemon pokemon, Ribbon ribbon, net.minecraft.server.level.ServerPlayer player)
  • Method Details

    • setRibbon

      public void setRibbon(Ribbon ribbon)
      Sets the ribbon that will be displayed
      Parameters:
      ribbon - The ribbon to be displayed