类 MiraiFriendMessagePreSendEvent
java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
me.dreamvoid.miraimc.sponge.event.message.presend.AbstractMessagePreSendEvent
me.dreamvoid.miraimc.sponge.event.message.presend.MiraiFriendMessagePreSendEvent
- 所有已实现的接口:
Cancellable
,Event
- 直接已知子类:
MiraiFriendMessagePreSendEvent
(Sponge) 消息 - 主动发送消息前 - 好友消息
-
字段概要
从类继承的字段 org.spongepowered.api.event.impl.AbstractEvent
currentOrder
-
构造器概要
构造器说明MiraiFriendMessagePreSendEvent
(net.mamoe.mirai.event.events.FriendMessagePreSendEvent event, Cause cause) -
方法概要
从类继承的方法 me.dreamvoid.miraimc.sponge.event.message.presend.AbstractMessagePreSendEvent
getCause, getMessage, getMessageContent, getMessageToString, getTargetID, isCancelled, setCancelled, setMessage, toString
从类继承的方法 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
getContext, getSource
-
构造器详细资料
-
MiraiFriendMessagePreSendEvent
public MiraiFriendMessagePreSendEvent(net.mamoe.mirai.event.events.FriendMessagePreSendEvent event, Cause cause)
-
-
方法详细资料
-
getBotID
public long getBotID()返回发送这条信息的机器人ID- 覆盖:
getBotID
在类中AbstractMessagePreSendEvent
- 返回:
- 机器人ID
-
getFriendID
public long getFriendID()返回目标好友的QQ号- 返回:
- 好友QQ号
-
getFriendNickName
返回目标好友的昵称- 返回:
- 昵称
-
getFriendRemark
返回目标好友的备注名- 返回:
- 备注名
-
getFriend
获取好友实例- 返回:
- MiraiFriend 实例
-