Skip to content

PlayerSkin

Package: com.hypixel.hytale.protocol

public class PlayerSkin

Protocol data structure in the Model/Rendering group.

TypeNameNullableDescription
StringbodyCharacteristicYes
StringunderwearYes
StringfaceYes
StringeyesYes
StringearsYes
StringmouthYes
StringfacialHairYes
StringhaircutYes
StringeyebrowsYes
StringpantsYes
StringoverpantsYes
StringundertopYes
StringovertopYes
StringshoesYes
StringheadAccessoryYes
StringfaceAccessoryYes
StringearAccessoryYes
StringskinFeatureYes
StringglovesYes
StringcapeYes
ConstantValue
NULLABLE_BIT_FIELD_SIZE3
FIXED_BLOCK_SIZE3
VARIABLE_FIELD_COUNT20
VARIABLE_BLOCK_START83
MAX_SIZE327,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.

@Nonnull
public 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.

@Override
public 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.