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
(Player player, String locale, int viewDistance, ClientOption.ChatVisibility chatVisibility, boolean chatColors, SkinParts skinParts, MainHand mainHand) Deprecated.PlayerClientOptionsChangeEvent
(Player player, Map<ClientOption<?>, ?> options) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static HandlerList
int
boolean
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(Player player, String locale, int viewDistance, ClientOption.ChatVisibility chatVisibility, boolean chatColors, SkinParts skinParts, 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() -
hasTextFilteringEnabled
public boolean hasTextFilteringEnabled() -
hasTextFilteringChanged
public boolean hasTextFilteringChanged() -
allowsServerListings
public boolean allowsServerListings() -
hasAllowServerListingsChanged
public boolean hasAllowServerListingsChanged() -
getParticleVisibility
-
hasParticleVisibilityChanged
public boolean hasParticleVisibilityChanged() -
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-