类 MiraiBotJoinGroupEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.group.MiraiBotJoinGroupEvent
所有已实现的接口:
org.spongepowered.api.event.Event

public class MiraiBotJoinGroupEvent extends org.spongepowered.api.event.impl.AbstractEvent
(Sponge) 群 - 机器人成功加入了一个新群
  • 字段概要

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

    currentOrder
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    org.spongepowered.api.event.Cause
     
    long
    获取机器人账号
    获取群实例
    long
    返回加入群的群号
    获取原始事件内容
    [!]

    从类继承的方法 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
  • 构造器详细资料

    • MiraiBotJoinGroupEvent

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

    • getGroupID

      public long getGroupID()
      返回加入群的群号
      返回:
      群号
    • getBotID

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

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

      public MiraiGroup getGroup()
      获取群实例
      返回:
      MiraiGroup 实例
    • cause

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