Package org.geysermc.geyser.skin
Class SkinManager
java.lang.Object
org.geysermc.geyser.skin.SkinManager
- Direct Known Subclasses:
SkullSkinManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.geysermc.mcprotocollib.auth.GameProfilestatic final org.geysermc.mcprotocollib.protocol.data.game.entity.player.ResolvableProfile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.EntrybuildCachedEntry(GeyserSession session, AvatarEntity playerEntity) Builds a Bedrock player list entry from our existing, cached Bedrock skin informationstatic org.cloudburstmc.protocol.bedrock.packet.PlayerListPacket.EntrybuildEntryManually(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.static UUIDcreateOfflinePlayerUUID(String username) static @Nullable org.geysermc.mcprotocollib.auth.GameProfile.TexturegetTextureDataFromProfile(org.geysermc.mcprotocollib.auth.GameProfile profile, org.geysermc.mcprotocollib.auth.GameProfile.TextureType type) static voidhandleBedrockSkin(AvatarEntity playerEntity, BedrockClientData clientData) static voidrequestAndHandleSkinAndCape(AvatarEntity entity, GeyserSession session, Consumer<SkinProvider.SkinAndCape> skinAndCapeConsumer) static CompletableFuture<org.geysermc.mcprotocollib.auth.GameProfile>resolveProfile(org.geysermc.mcprotocollib.protocol.data.game.entity.player.ResolvableProfile profile) static voidsendSkinPacket(GeyserSession session, AvatarEntity entity, org.geysermc.geyser.api.skin.SkinData skinData)
-
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
-
createOfflinePlayerUUID
-