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
ConstructorsConstructorDescriptionMiraiGroupMuteAllEvent(net.mamoe.mirai.event.events.GroupMuteAllEvent event, org.spongepowered.api.event.Cause cause) -
Method Summary
Methods inherited from class org.spongepowered.api.event.impl.AbstractEvent
initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
获取原始事件内容
[!] 不推荐使用 -
getGroup
获取群实例- Returns:
- MiraiGroup 实例
-
cause
@NotNull public @NotNull org.spongepowered.api.event.Cause cause()
-