Skip to content

Model

Package: com.hypixel.hytale.protocol

public class Model

Protocol data structure in the Model/Rendering group.

TypeNameNullableDescription
StringassetIdYes
StringpathYes
StringtextureYes
StringgradientSetYes
StringgradientIdYes
CameraSettingscameraYes
floatscaleNo
floateyeHeightNo
floatcrouchOffsetNo
floatsittingOffsetNo
floatsleepingOffsetNo
Map<``String``, AnimationSet>animationSetsYes
ModelAttachment[]attachmentsYes
HitboxhitboxYes
ModelParticle[]particlesYes
ModelTrail[]trailsYes
ColorLightlightYes
Map<String, DetailBox[]>detailBoxesYes
PhobiaphobiaNoDefault: Phobia.None.
ModelphobiaModelYes
ConstantValue
NULLABLE_BIT_FIELD_SIZE2
FIXED_BLOCK_SIZE51
VARIABLE_FIELD_COUNT12
VARIABLE_BLOCK_START99
MAX_SIZE1,677,721,600

Binary layout: 2 null-bit bytes + 51 bytes of fixed fields + 12 variable-length fields (4-byte offset slots). All multi-byte primitives use little-endian encoding.

@Nonnull
public static Model deserialize(@Nonnull ByteBuf buf, int offset)

Deserializes a Model 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 Model starting at the given offset.

public void serialize(@Nonnull ByteBuf buf)

Serializes this Model 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.