Package cc.carm.plugin.userprefix.event
Class UserPrefixChangeEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- org.bukkit.event.player.PlayerEvent
-
- cc.carm.plugin.userprefix.event.UserPrefixEvent
-
- cc.carm.plugin.userprefix.event.UserPrefixChangeEvent
-
- All Implemented Interfaces:
Cancellable
public class UserPrefixChangeEvent extends UserPrefixEvent implements Cancellable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
-
Field Summary
Fields Modifier and Type Field Description static HandlerList
handler
-
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
-
Constructor Summary
Constructors Constructor Description UserPrefixChangeEvent(@NotNull Player who, @Nullable PrefixConfig before, @NotNull PrefixConfig after)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
call(@NotNull Player who, @Nullable PrefixConfig before, @NotNull PrefixConfig after, @Nullable Consumer<@Nullable PrefixConfig> finish)
@NotNull PrefixConfig
getAfter()
@Nullable PrefixConfig
getBefore()
@NotNull HandlerList
getHandlers()
boolean
isCancelled()
void
setAfter(@NotNull PrefixConfig after)
void
setCancelled(boolean cancel)
-
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
-
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
-
-
-
Field Detail
-
handler
public static HandlerList handler
-
-
Constructor Detail
-
UserPrefixChangeEvent
public UserPrefixChangeEvent(@NotNull @NotNull Player who, @Nullable @Nullable PrefixConfig before, @NotNull @NotNull PrefixConfig after)
-
-
Method Detail
-
getBefore
@Nullable public @Nullable PrefixConfig getBefore()
-
getAfter
@NotNull public @NotNull PrefixConfig getAfter()
-
setAfter
public void setAfter(@NotNull @NotNull PrefixConfig after)
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceCancellable
-
getHandlers
@NotNull public @NotNull HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
call
public static void call(@NotNull @NotNull Player who, @Nullable @Nullable PrefixConfig before, @NotNull @NotNull PrefixConfig after, @Nullable @Nullable Consumer<@Nullable PrefixConfig> finish)
-
-