Package org.geysermc.geyser.skin
Class SkinManager
java.lang.Object
org.geysermc.geyser.skin.SkinManager
- Direct Known Subclasses:
SkullSkinManager
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.nukkitx.protocol.bedrock.packet.PlayerListPacket.Entry
buildCachedEntry(GeyserSession session, PlayerEntity playerEntity)
Builds a Bedrock player list entry from our existing, cached Bedrock skin informationstatic com.nukkitx.protocol.bedrock.packet.PlayerListPacket.Entry
buildEntryManually(GeyserSession session, UUID uuid, String username, long geyserId, String skinId, byte[] skinData, String capeId, byte[] capeData, SkinProvider.SkinGeometry geometry)
With all the information needed, build a Bedrock player entry with translated skin information.static void
handleBedrockSkin(PlayerEntity playerEntity, BedrockClientData clientData)
static void
requestAndHandleSkinAndCape(PlayerEntity entity, GeyserSession session, Consumer<SkinProvider.SkinAndCape> skinAndCapeConsumer)
-
Constructor Details
-
SkinManager
public SkinManager()
-
-
Method Details
-
buildCachedEntry
public static com.nukkitx.protocol.bedrock.packet.PlayerListPacket.Entry buildCachedEntry(GeyserSession session, PlayerEntity playerEntity)Builds a Bedrock player list entry from our existing, cached Bedrock skin information -
buildEntryManually
public static com.nukkitx.protocol.bedrock.packet.PlayerListPacket.Entry buildEntryManually(GeyserSession session, UUID uuid, String username, long geyserId, String skinId, byte[] skinData, String capeId, byte[] capeData, SkinProvider.SkinGeometry geometry)With all the information needed, build a Bedrock player entry with translated skin information. -
requestAndHandleSkinAndCape
public static void requestAndHandleSkinAndCape(PlayerEntity entity, GeyserSession session, Consumer<SkinProvider.SkinAndCape> skinAndCapeConsumer) -
handleBedrockSkin
-