Class PlayerClientOptionsChangeEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.destroystokyo.paper.event.player.PlayerClientOptionsChangeEvent
Called when the player changes their client settings
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerClientOptionsChangeEvent
(@NotNull Player player, @NotNull String locale, int viewDistance, @NotNull ClientOption.ChatVisibility chatVisibility, boolean chatColors, @NotNull SkinParts skinParts, @NotNull MainHand mainHand) Deprecated.PlayerClientOptionsChangeEvent
(@NotNull Player player, @NotNull Map<ClientOption<?>, ?> options) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static @NotNull HandlerList
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerClientOptionsChangeEvent
@Deprecated public PlayerClientOptionsChangeEvent(@NotNull @NotNull Player player, @NotNull @NotNull String locale, int viewDistance, @NotNull @NotNull ClientOption.ChatVisibility chatVisibility, boolean chatColors, @NotNull @NotNull SkinParts skinParts, @NotNull @NotNull MainHand mainHand) Deprecated. -
PlayerClientOptionsChangeEvent
-
-
Method Details
-
getLocale
-
hasLocaleChanged
public boolean hasLocaleChanged() -
getViewDistance
public int getViewDistance() -
hasViewDistanceChanged
public boolean hasViewDistanceChanged() -
getChatVisibility
-
hasChatVisibilityChanged
public boolean hasChatVisibilityChanged() -
hasChatColorsEnabled
public boolean hasChatColorsEnabled() -
hasChatColorsEnabledChanged
public boolean hasChatColorsEnabledChanged() -
getSkinParts
-
hasSkinPartsChanged
public boolean hasSkinPartsChanged() -
getMainHand
-
hasMainHandChanged
public boolean hasMainHandChanged() -
allowsServerListings
public boolean allowsServerListings() -
hasAllowServerListingsChanged
public boolean hasAllowServerListingsChanged() -
hasTextFilteringEnabled
public boolean hasTextFilteringEnabled() -
hasTextFilteringChanged
public boolean hasTextFilteringChanged() -
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-