Class RibbonEvent.RemoveRibbon

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.RemoveRibbon
Direct Known Subclasses:
RibbonEvent.RemoveRibbon.Post, RibbonEvent.RemoveRibbon.Pre
Enclosing class:
RibbonEvent

public static class RibbonEvent.RemoveRibbon extends RibbonEvent
This contains the events relating to when a ribbon is removed from a Pokemon
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fired after the ribbon is removed from the Pokemon
    static class 
    The event fired just before the ribbon is removed from the Pokemon Here you can set the ribbon or if the displayed ribbon will be removed (and set to no display)] Cancelling this will cancel the removal & the removal of the display

    Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent

    RibbonEvent.ReceiveRibbon, RibbonEvent.RemoveRibbon, RibbonEvent.SetDisplayedRibbon

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     

    Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent

    pokemon, ribbon
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoveRibbon(Pokemon pokemon, Ribbon ribbon, boolean wasDisplay)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    If the ribbon was previously displayed and hence the Pokemon's display ribbon is being removed

    Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent

    getPokemon, getRibbon

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • wasDisplay

      protected boolean wasDisplay
  • Constructor Details

    • RemoveRibbon

      public RemoveRibbon(Pokemon pokemon, Ribbon ribbon, boolean wasDisplay)
  • Method Details

    • wasDisplayed

      public boolean wasDisplayed()
      If the ribbon was previously displayed and hence the Pokemon's display ribbon is being removed
      Returns:
      Was it displayed