Class SkinPackets
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.profile.SkinPackets
-
public class SkinPackets extends java.lang.Object
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description static int
PACKET_GET_OTHER_SKIN
static int
PACKET_GET_SKIN_BY_URL
static int
PACKET_MY_SKIN_CUSTOM
static int
PACKET_MY_SKIN_PRESET
static int
PACKET_OTHER_SKIN_CUSTOM
static int
PACKET_OTHER_SKIN_PRESET
-
Constructor Summary
Constructors Constructor Description SkinPackets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EaglercraftUUID
createEaglerURLSkinUUID(java.lang.String skinUrl)
static void
readPluginMessage(PacketBuffer buffer, ServerSkinCache skinCache)
static PacketBuffer
writeGetOtherSkin(EaglercraftUUID skinId)
static PacketBuffer
writeGetSkinByURL(EaglercraftUUID skinId, java.lang.String skinUrl)
static byte[]
writeMySkinCustom(CustomSkin customSkin)
static byte[]
writeMySkinPreset(int skinId)
-
-
-
Field Detail
-
PACKET_MY_SKIN_PRESET
public static final int PACKET_MY_SKIN_PRESET
- See Also:
- Constant Field Values
-
PACKET_MY_SKIN_CUSTOM
public static final int PACKET_MY_SKIN_CUSTOM
- See Also:
- Constant Field Values
-
PACKET_GET_OTHER_SKIN
public static final int PACKET_GET_OTHER_SKIN
- See Also:
- Constant Field Values
-
PACKET_OTHER_SKIN_PRESET
public static final int PACKET_OTHER_SKIN_PRESET
- See Also:
- Constant Field Values
-
PACKET_OTHER_SKIN_CUSTOM
public static final int PACKET_OTHER_SKIN_CUSTOM
- See Also:
- Constant Field Values
-
PACKET_GET_SKIN_BY_URL
public static final int PACKET_GET_SKIN_BY_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
readPluginMessage
public static void readPluginMessage(PacketBuffer buffer, ServerSkinCache skinCache) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMySkinPreset
public static byte[] writeMySkinPreset(int skinId) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMySkinCustom
public static byte[] writeMySkinCustom(CustomSkin customSkin) throws java.io.IOException
- Throws:
java.io.IOException
-
writeGetOtherSkin
public static PacketBuffer writeGetOtherSkin(EaglercraftUUID skinId) throws java.io.IOException
- Throws:
java.io.IOException
-
writeGetSkinByURL
public static PacketBuffer writeGetSkinByURL(EaglercraftUUID skinId, java.lang.String skinUrl) throws java.io.IOException
- Throws:
java.io.IOException
-
createEaglerURLSkinUUID
public static EaglercraftUUID createEaglerURLSkinUUID(java.lang.String skinUrl)
-
-