Class RibbonEvent.SetDisplayedRibbon
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent
com.pixelmonmod.pixelmon.api.pokemon.ribbon.event.RibbonEvent.SetDisplayedRibbon
- Direct Known Subclasses:
RibbonEvent.SetDisplayedRibbon.Post
,RibbonEvent.SetDisplayedRibbon.Pre
- Enclosing class:
- RibbonEvent
The event called for when a pokemon's displayed ribbon is set
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the displayed ribbon has been set You cannot cancel this eventstatic class
Fired before the ribbon is set.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
pokemon, ribbon
-
Constructor Summary
ConstructorDescriptionSetDisplayedRibbon
(Pokemon pokemon, Ribbon ribbon, net.minecraft.server.level.ServerPlayer player) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
The player who owns the PokemonMethods 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
-
player
protected final net.minecraft.server.level.ServerPlayer player
-
-
Constructor Details
-
SetDisplayedRibbon
-
-
Method Details
-
getPlayer
@Nullable public net.minecraft.server.level.ServerPlayer getPlayer()The player who owns the Pokemon- Returns:
- The owner
-