Class SessionSkinApplyEvent
java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.bedrock.SessionSkinApplyEvent
- All Implemented Interfaces:
org.geysermc.event.Event
Called when a skin is applied to a player.
Won't be called when a fake player is spawned for a player skull.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSkinApplyEvent(GeyserConnection connection, String username, UUID uuid, boolean slim, boolean bedrock, SkinData skinData) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbedrock()If the player is a Bedrock player.abstract voidChange the cape of the player.voidChange the geometry of the player.abstract voidgeometry(SkinGeometry newGeometry) Change the geometry of the player.The original skin data of the player.abstract voidChange the skin of the player.abstract SkinDataskinData()The skin data of the player.booleanslim()If the player is using a slim model.username()The username of the player.uuid()The UUID of the player.Methods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent
connection
-
Constructor Details
-
SessionSkinApplyEvent
public SessionSkinApplyEvent(GeyserConnection connection, String username, UUID uuid, boolean slim, boolean bedrock, SkinData skinData)
-
-
Method Details
-
username
The username of the player.- Returns:
- the username of the player
-
uuid
The UUID of the player.- Returns:
- the UUID of the player
-
slim
public boolean slim()If the player is using a slim model.- Returns:
- if the player is using a slim model
-
bedrock
public boolean bedrock()If the player is a Bedrock player.- Returns:
- if the player is a Bedrock player
-
originalSkin
The original skin data of the player.- Returns:
- the original skin data of the player
-
skinData
The skin data of the player.- Returns:
- the current skin data of the player
-
skin
Change the skin of the player.- Parameters:
newSkin- the new skin
-
cape
Change the cape of the player.- Parameters:
newCape- the new cape
-
geometry
Change the geometry of the player.- Parameters:
newGeometry- the new geometry
-
geometry
Change the geometry of the player.Constructs a generic
SkinGeometryobject with the given data.- Parameters:
geometryName- the name of the geometrygeometryData- the data of the geometry
-