Class MiraiGroupMuteAllEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.group.setting.MiraiGroupMuteAllEvent
All Implemented Interfaces:
org.spongepowered.api.event.Event

public class MiraiGroupMuteAllEvent extends org.spongepowered.api.event.impl.AbstractEvent
(Sponge) 群 - 群设置 - 群设置改变 - 全员禁言状态改变
  • Field Summary

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

    currentOrder
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull org.spongepowered.api.event.Cause
     
    long
    获取机器人账号
    获取群实例
    long
    获取群号
    int
    获取哈希值
    long
    获取操作管理员QQ号 如果不存在,返回0
    boolean
    获取群当前是否允许聊天
    boolean
    获取群当前是否允许聊天
    获取原始事件内容
    [!]

    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

    • MiraiGroupMuteAllEvent

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

    • getGroupID

      public long getGroupID()
      获取群号
      Returns:
      群号
    • getOperatorID

      public long getOperatorID()
      获取操作管理员QQ号 如果不存在,返回0
      Returns:
      QQ号
    • isAllowChat

      public boolean isAllowChat()
      获取群当前是否允许聊天
      Returns:
      是否允许聊天
    • isAllowChatBefore

      public boolean isAllowChatBefore()
      获取群当前是否允许聊天
      Returns:
      是否允许聊天
    • getBotID

      public long getBotID()
      获取机器人账号
      Returns:
      机器人账号
    • getHashCode

      public int getHashCode()
      获取哈希值
      Returns:
      哈希值
    • toString

      public String toString()
      获取原始事件内容
      [!] 不推荐使用
      Overrides:
      toString in class Object
      Returns:
      原始事件内容
    • getGroup

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

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