public class SetNicknameEvent
extends net.minecraftforge.eventbus.api.Event
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.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
nickname
The new nickname.
|
net.minecraft.entity.player.ServerPlayerEntity |
player
The player doing the renaming.
|
Pokemon |
pokemon
The Pokémon being renamed.
|
Constructor and Description |
---|
SetNicknameEvent(net.minecraft.entity.player.ServerPlayerEntity player,
Pokemon pokemon,
java.lang.String nickname) |
public final net.minecraft.entity.player.ServerPlayerEntity player
public final Pokemon pokemon
public java.lang.String nickname
public SetNicknameEvent(net.minecraft.entity.player.ServerPlayerEntity player, Pokemon pokemon, java.lang.String nickname)