Class SkinManager

java.lang.Object
org.geysermc.geyser.skin.SkinManager
Direct Known Subclasses:
SkullSkinManager

public class SkinManager extends Object
  • Field Details

    • EMPTY_PROFILE

      public static final org.geysermc.mcprotocollib.auth.GameProfile EMPTY_PROFILE
    • EMPTY_RESOLVABLE_PROFILE

      public static final org.geysermc.mcprotocollib.protocol.data.game.entity.player.ResolvableProfile EMPTY_RESOLVABLE_PROFILE
  • Constructor Details

    • SkinManager

      public SkinManager()
  • Method Details

    • buildCachedEntry

      public static org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry buildCachedEntry(GeyserSession session, AvatarEntity playerEntity)
      Builds a Bedrock player list entry from our existing, cached Bedrock skin information
    • buildEntryManually

      public static org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.Entry buildEntryManually(GeyserSession session, UUID uuid, String username, long geyserId, org.geysermc.geyser.api.skin.Skin skin, org.geysermc.geyser.api.skin.Cape cape, org.geysermc.geyser.api.skin.SkinGeometry geometry, Color color)
      With all the information needed, build a Bedrock player entry with translated skin information.
    • sendSkinPacket

      public static void sendSkinPacket(GeyserSession session, AvatarEntity entity, org.geysermc.geyser.api.skin.SkinData skinData)
    • resolveProfile

      public static CompletableFuture<org.geysermc.mcprotocollib.auth.GameProfile> resolveProfile(org.geysermc.mcprotocollib.protocol.data.game.entity.player.ResolvableProfile profile)
    • getTextureDataFromProfile

      public static @Nullable org.geysermc.mcprotocollib.auth.GameProfile.Texture getTextureDataFromProfile(org.geysermc.mcprotocollib.auth.GameProfile profile, org.geysermc.mcprotocollib.auth.GameProfile.TextureType type)
    • requestAndHandleSkinAndCape

      public static void requestAndHandleSkinAndCape(AvatarEntity entity, GeyserSession session, Consumer<SkinProvider.SkinAndCape> skinAndCapeConsumer)
    • handleBedrockSkin

      public static void handleBedrockSkin(AvatarEntity playerEntity, BedrockClientData clientData)
    • createOfflinePlayerUUID

      public static UUID createOfflinePlayerUUID(String username)