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

public abstract class SessionSkinApplyEvent extends ConnectionEvent
Called when a skin is applied to a player.

Won't be called when a fake player is spawned for a player skull.

  • Constructor Details

  • Method Details

    • username

      public String username()
      The username of the player.
      Returns:
      the username of the player
    • uuid

      public UUID 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

      public SkinData originalSkin()
      The original skin data of the player.
      Returns:
      the original skin data of the player
    • skinData

      public abstract SkinData skinData()
      The skin data of the player.
      Returns:
      the current skin data of the player
    • skin

      public abstract void skin(Skin newSkin)
      Change the skin of the player.
      Parameters:
      newSkin - the new skin
    • cape

      public abstract void cape(Cape newCape)
      Change the cape of the player.
      Parameters:
      newCape - the new cape
    • geometry

      public abstract void geometry(SkinGeometry newGeometry)
      Change the geometry of the player.
      Parameters:
      newGeometry - the new geometry
    • geometry

      public void geometry(String geometryName, String geometryData)
      Change the geometry of the player.

      Constructs a generic SkinGeometry object with the given data.

      Parameters:
      geometryName - the name of the geometry
      geometryData - the data of the geometry