Class MiraiGroupAllowAnonymousChatEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.group.setting.MiraiGroupAllowAnonymousChatEvent
- All Implemented Interfaces:
org.spongepowered.api.event.Event
public class MiraiGroupAllowAnonymousChatEvent
extends org.spongepowered.api.event.impl.AbstractEvent
(Sponge) 群 - 群设置 - 群设置改变 - 匿名聊天状态改变
-
Field Summary
Fields inherited from class org.spongepowered.api.event.impl.AbstractEvent
currentOrder -
Constructor Summary
ConstructorsConstructorDescriptionMiraiGroupAllowAnonymousChatEvent(net.mamoe.mirai.event.events.GroupAllowAnonymousChatEvent 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
-
MiraiGroupAllowAnonymousChatEvent
public MiraiGroupAllowAnonymousChatEvent(net.mamoe.mirai.event.events.GroupAllowAnonymousChatEvent event, org.spongepowered.api.event.Cause cause)
-
-
Method Details
-
getGroupID
public long getGroupID()获取群号- Returns:
- 群号
-
isAllowAnonymousChat
public boolean isAllowAnonymousChat()获取群当前是否允许匿名聊天- Returns:
- 是否允许匿名聊天
-
isAllowAnonymousChatBefore
public boolean isAllowAnonymousChatBefore()获取群之前是否允许匿名聊天- 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()
-