Class MiraiBotNickChangedEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.bot.AbstractBotEvent
me.dreamvoid.miraimc.sponge.event.bot.MiraiBotNickChangedEvent
All Implemented Interfaces:
org.spongepowered.api.event.Event

public class MiraiBotNickChangedEvent extends AbstractBotEvent
(Sponge) Bot - Bot 昵称改变
  • Field Summary

    Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent

    currentOrder
  • Constructor Summary

    Constructors
    Constructor
    Description
    MiraiBotNickChangedEvent(net.mamoe.mirai.event.events.BotNickChangedEvent event, org.spongepowered.api.event.Cause cause)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    获取机器人更换后的昵称
    获取机器人更换前的昵称

    Methods inherited from class me.dreamvoid.miraimc.sponge.event.bot.AbstractBotEvent

    cause, getBot, getBotID, getHashCode, getNick, toString

    Methods inherited from class org.spongepowered.api.event.impl.AbstractEvent

    init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.spongepowered.api.event.Event

    context, source
  • Constructor Details

    • MiraiBotNickChangedEvent

      public MiraiBotNickChangedEvent(net.mamoe.mirai.event.events.BotNickChangedEvent event, org.spongepowered.api.event.Cause cause)
  • Method Details

    • getOldNick

      public String getOldNick()
      获取机器人更换前的昵称
      Returns:
      机器人更换前的昵称
    • getNewNick

      public String getNewNick()
      获取机器人更换后的昵称
      Returns:
      机器人更换后的昵称