PlayerSkin
Package: com.hypixel.hytale.protocol
public class PlayerSkinProtocol data structure in the Model/Rendering group.
Fields
Section titled “Fields”| Type | Name | Nullable | Description |
|---|---|---|---|
String | bodyCharacteristic | Yes | |
String | underwear | Yes | |
String | face | Yes | |
String | eyes | Yes | |
String | ears | Yes | |
String | mouth | Yes | |
String | facialHair | Yes | |
String | haircut | Yes | |
String | eyebrows | Yes | |
String | pants | Yes | |
String | overpants | Yes | |
String | undertop | Yes | |
String | overtop | Yes | |
String | shoes | Yes | |
String | headAccessory | Yes | |
String | faceAccessory | Yes | |
String | earAccessory | Yes | |
String | skinFeature | Yes | |
String | gloves | Yes | |
String | cape | Yes |
Serialization Layout
Section titled “Serialization Layout”| Constant | Value |
|---|---|
NULLABLE_BIT_FIELD_SIZE | 3 |
FIXED_BLOCK_SIZE | 3 |
VARIABLE_FIELD_COUNT | 20 |
VARIABLE_BLOCK_START | 83 |
MAX_SIZE | 327,680,183 |
Binary layout: 3 null-bit bytes + 3 bytes of fixed fields + 20 variable-length fields (4-byte offset slots). All multi-byte primitives use little-endian encoding.
Methods
Section titled “Methods”@Nonnullpublic static PlayerSkin deserialize(@Nonnull ByteBuf buf, int offset)Deserializes a PlayerSkin from the given buffer at the specified offset.
public static int computeBytesConsumed(@Nonnull ByteBuf buf, int offset)Returns the total number of bytes consumed by this PlayerSkin starting at the given offset.
public void serialize(@Nonnull ByteBuf buf)Serializes this PlayerSkin into the given buffer.
@Overridepublic int computeSize()Returns the serialized size in bytes.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.