Class RibbonEvent.ReceiveRibbon.Pre
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
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.ReceiveRibbon.Pre
- Enclosing class:
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.ReceiveRibbon
RibbonEvent.ReceiveRibbon.Post, RibbonEvent.ReceiveRibbon.Pre
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 inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.ReceiveRibbon
shouldDisplay
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
pokemon, ribbon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the ribbon being givenvoid
setShouldDisplay
(boolean shouldDisplay) Sets if the ribbon should be set as the displayed ribbon for the PokemonMethods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.ReceiveRibbon
isShouldDisplay
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
-
Constructor Details
-
Pre
-
-
Method Details
-
setRibbon
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
-