Class RibbonEvent.SetDisplayedRibbon.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.SetDisplayedRibbon
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.SetDisplayedRibbon.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
RibbonEvent.SetDisplayedRibbon
public static class RibbonEvent.SetDisplayedRibbon.Pre
extends RibbonEvent.SetDisplayedRibbon
implements net.neoforged.bus.api.ICancellableEvent
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.SetDisplayedRibbon
RibbonEvent.SetDisplayedRibbon.Post, RibbonEvent.SetDisplayedRibbon.Pre
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
RibbonEvent.ReceiveRibbon, RibbonEvent.RemoveRibbon, RibbonEvent.SetDisplayedRibbon
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.SetDisplayedRibbon
player
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
pokemon, ribbon
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.SetDisplayedRibbon
getPlayer
Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
getPokemon, getRibbon
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
-
-
Method Details
-
setRibbon
Sets the ribbon that will be displayed- Parameters:
ribbon
- The ribbon to be displayed
-