Class PlayerSkinInitEvent
java.lang.Object
net.minestom.server.event.player.PlayerSkinInitEvent
- All Implemented Interfaces:
Event, EntityEvent, PlayerEvent
Called at the player connection to initialize his skin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the player.getSkin()Gets the spawning skin of the player.voidsetSkin(@Nullable PlayerSkin skin) Sets the spawning skin of the player.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PlayerEvent
getEntity
-
Constructor Details
-
PlayerSkinInitEvent
-
-
Method Details
-
getSkin
Gets the spawning skin of the player.- Returns:
- the player skin, or null if not any
-
setSkin
Sets the spawning skin of the player.- Parameters:
skin- the new player skin
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-