Class RibbonEvent.RemoveRibbon.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.RemoveRibbon
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.RemoveRibbon.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
RibbonEvent.RemoveRibbon
public static class RibbonEvent.RemoveRibbon.Pre
extends RibbonEvent.RemoveRibbon
implements net.neoforged.bus.api.ICancellableEvent
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 invalid input: '&' the removal of the display
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.RemoveRibbon
RibbonEvent.RemoveRibbon.Post, RibbonEvent.RemoveRibbon.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.RemoveRibbon
wasDisplay
Fields inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
pokemon, ribbon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setRemoveDisplayed
(boolean wasDisplayed) Sets if the display ribbon is clearedvoid
Sets the ribbon being removedMethods inherited from class com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.RemoveRibbon
wasDisplayed
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 being removed- Parameters:
ribbon
- The ribbon
-
setRemoveDisplayed
public void setRemoveDisplayed(boolean wasDisplayed) Sets if the display ribbon is cleared- Parameters:
wasDisplayed
- Was it a displayed ribbon
-