类 GroupRemoveMemberEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.group.GroupRemoveMemberEvent
- 所有已实现的接口:
org.bukkit.event.Cancellable
Event triggered when a member is removed from a group of a dominion.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
org.bukkit.event.Event.Result -
构造器概要
构造器构造器说明GroupRemoveMemberEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull GroupDTO group, @NotNull MemberDTO member) Constructs a new GroupRemoveMemberEvent. -
方法概要
修饰符和类型方法说明afterAdded(Consumer<MemberDTO> consumer) Call back after the member is removed.@NotNull DominionDTOReturns the dominion associated with the event.Gets the CompletableFuture that will be completed with the removed MemberDTO.@NotNull GroupDTOgetGroup()Returns the group from which the member is removed.@NotNull MemberDTOReturns the member being removed.voidSets the member being removed.从类继承的方法 cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled从类继承的方法 cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers从类继承的方法 org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
构造器详细资料
-
GroupRemoveMemberEvent
public GroupRemoveMemberEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull GroupDTO group, @NotNull @NotNull MemberDTO member) Constructs a new GroupRemoveMemberEvent.- 参数:
operator- the command sender who initiated the eventdominion- the dominion associated with the eventgroup- the group from which the member is removedmember- the member being removed
-
-
方法详细资料
-
getGroup
Returns the group from which the member is removed.- 返回:
- the group
-
getMember
Returns the member being removed.- 返回:
- the member
-
getDominion
Returns the dominion associated with the event.- 返回:
- the dominion
-
setMember
Sets the member being removed.- 参数:
member- the new member
-
getFutureToComplete
Gets the CompletableFuture that will be completed with the removed MemberDTO.Under most circumstances, you should not need to use this method directly. If you need to perform actions after the member is removed, you should use the
afterAdded(Consumer)method instead.- 返回:
- the CompletableFuture to be completed
-
afterAdded
Call back after the member is removed.Use this method to perform actions after the member has been removed (may fail), if you need to do something with the removed member.
- 参数:
consumer- the consumer to handle the created member- 返回:
- a CompletableFuture that completes when the consumer has been executed
-