Interface SkinApplyEvent
- All Superinterfaces:
org.geysermc.event.Cancellable
public interface SkinApplyEvent
extends org.geysermc.event.Cancellable
An event that's fired when Floodgate receives a player skin. The event will be cancelled by
default when hasSkin is true, as Floodgate by default only applies skins when the player has no
skin applied yet.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@Nullable SkinApplyEvent.SkinDataReturns the skin texture currently applied to the player.@NonNull SkinApplyEvent.SkinDatanewSkin()Returns the skin texture to be applied to the player.newSkin(@NonNull SkinApplyEvent.SkinData skinData) Sets the skin texture to be applied to the player@NonNull FloodgatePlayerplayer()Returns the player that will receive the skin.Methods inherited from interface org.geysermc.event.Cancellable
cancelled, cancelled, isCancelled, setCancelled
-
Method Details
-
player
@NonNull FloodgatePlayer player()Returns the player that will receive the skin. -
currentSkin
@Nullable SkinApplyEvent.SkinData currentSkin()Returns the skin texture currently applied to the player. -
newSkin
@NonNull SkinApplyEvent.SkinData newSkin()Returns the skin texture to be applied to the player. -
newSkin
Sets the skin texture to be applied to the player- Parameters:
skinData- the skin to apply- Returns:
- this
-