Class SetNicknameEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.SetNicknameEvent
public class SetNicknameEvent
extends net.minecraftforge.eventbus.api.Event
Event fired when a Pokémon is being nicknamed by a player.
Note: nickname
could be null or an empty string if they are removing a nickname.
Cancelling this event will prevent the nickname from being applied.
- Since:
- November 3, 2018
-
Nested Class Summary
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
-
Constructor Summary
ConstructorDescriptionSetNicknameEvent
(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, String nickname) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
public final net.minecraft.server.level.ServerPlayer playerThe player doing the renaming. -
pokemon
The Pokémon being renamed. -
nickname
The new nickname. Null or an empty string represents no nickname.
-
-
Constructor Details
-
SetNicknameEvent
-