类 AbstractBotEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.bot.AbstractBotEvent
所有已实现的接口:
org.spongepowered.api.event.Event
直接已知子类:
MiraiBotAvatarChangedEvent, MiraiBotInvitedJoinGroupRequestEvent, MiraiBotNickChangedEvent, MiraiBotOfflineEvent, MiraiBotOnlineEvent, MiraiBotReloginEvent, MiraiMemberJoinRequestEvent, MiraiNewFriendRequestEvent, MiraiSignEvent

public abstract class AbstractBotEvent extends org.spongepowered.api.event.impl.AbstractEvent
(Sponge) Bot(抽象)
  • 字段概要

    从类继承的字段 org.spongepowered.api.event.impl.AbstractEvent

    currentOrder
  • 构造器概要

    构造器
    构造器
    说明
    AbstractBotEvent(net.mamoe.mirai.event.events.BotEvent event, org.spongepowered.api.event.Cause cause)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    org.spongepowered.api.event.Cause
     
    获取机器人实例
    long
    获取机器人账号
    int
    获取哈希值
    获取机器人昵称
    获取原始事件内容
    [!]

    从类继承的方法 org.spongepowered.api.event.impl.AbstractEvent

    init

    从类继承的方法 java.lang.Object

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

    从接口继承的方法 org.spongepowered.api.event.Event

    context, source
  • 构造器详细资料

    • AbstractBotEvent

      public AbstractBotEvent(net.mamoe.mirai.event.events.BotEvent event, org.spongepowered.api.event.Cause cause)
  • 方法详细资料

    • getBotID

      public long getBotID()
      获取机器人账号
      返回:
      机器人账号
    • getNick

      public String getNick()
      获取机器人昵称
      返回:
      机器人昵称
    • getBot

      public MiraiBot getBot()
      获取机器人实例
      返回:
      机器人实例
    • toString

      public String toString()
      获取原始事件内容
      [!] 不推荐使用
      覆盖:
      toString 在类中 Object
      返回:
      原始事件内容
    • getHashCode

      public int getHashCode()
      获取哈希值
      返回:
      哈希值
    • cause

      @NotNull public org.spongepowered.api.event.Cause cause()