类 MiraiFriendMessageEvent

java.lang.Object
org.bukkit.event.Event
me.dreamvoid.miraimc.bukkit.event.message.passive.AbstractMessageEvent
me.dreamvoid.miraimc.bukkit.event.message.passive.MiraiFriendMessageEvent
直接已知子类:
MiraiFriendMessageEvent

public class MiraiFriendMessageEvent extends AbstractMessageEvent
(Bukkit) 消息 - 被动收到消息 - 好友消息
  • 构造器详细资料

    • MiraiFriendMessageEvent

      public MiraiFriendMessageEvent(net.mamoe.mirai.event.events.FriendMessageEvent event)
    • MiraiFriendMessageEvent

      public MiraiFriendMessageEvent(long BotAccount, FetchMessage.Data data)
  • 方法详细资料

    • getSenderName

      public String getSenderName()
      返回发送这条信息的发送者昵称
      覆盖:
      getSenderName 在类中 AbstractMessageEvent
      返回:
      发送者昵称
    • sendMessage

      public void sendMessage(String message)
      向发送来源发送消息(HTTPAPI下支持 Mirai Code)
      覆盖:
      sendMessage 在类中 AbstractMessageEvent
      参数:
      message - 消息内容
    • sendMessageMirai

      public void sendMessageMirai(String message)
      向发送来源发送消息(支持 Mirai Code)
      覆盖:
      sendMessageMirai 在类中 AbstractMessageEvent
      参数:
      message - 消息内容
    • getFriend

      public MiraiFriend getFriend()
      获取好友实例
      返回:
      MiraiFriend 实例