Class RibbonEvent.ReceiveRibbon
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.ReceiveRibbon
- Direct Known Subclasses:
RibbonEvent.ReceiveRibbon.Post
,RibbonEvent.ReceiveRibbon.Pre
- Enclosing class:
- RibbonEvent
The event relating to when a Pokemon is given a ribbon
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the ribbon is given to the Pokemonstatic class
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 displayedNested 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 inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
pokemon, ribbon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Will tell you if the ribbon given will be forced as the display ribbonMethods 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
-
Field Details
-
shouldDisplay
protected boolean shouldDisplay
-
-
Constructor Details
-
ReceiveRibbon
-
-
Method Details
-
isShouldDisplay
public boolean isShouldDisplay()Will tell you if the ribbon given will be forced as the display ribbon- Returns:
- True if it will be the new display ribbon
-