Skip to content

ItemBase

Package: com.hypixel.hytale.protocol

public class ItemBase

Comprehensive item type definition containing all identity, visual, category, tool/weapon/armor/glider/utility specializations, interaction configuration, and durability properties.

TypeNameNullableDescription
StringidYes
StringmodelYes
floatscaleNo
StringtextureYes
StringanimationYes
StringplayerAnimationsIdYes
booleanusePlayerAnimationsNo
intmaxStackNo
intreticleIndexNo
StringiconYes
AssetIconPropertiesiconPropertiesYes
ItemTranslationPropertiestranslationPropertiesYes
intitemLevelNo
intqualityIndexNo
ItemResourceType[]resourceTypesYes
booleanconsumableNo
booleanvariantNo
intblockIdNo
ItemTooltoolYes
ItemWeaponweaponYes
ItemArmorarmorYes
ItemGlidergliderConfigYes
ItemUtilityutilityYes
BlockSelectorToolDatablockSelectorToolYes
ItemBuilderToolDatabuilderToolDataYes
ItemEntityConfigitemEntityYes
StringsetYes
String``[]categoriesYes
ModelParticle[]particlesYes
ModelParticle[]firstPersonParticlesYes
ModelTrail[]trailsYes
ColorLightlightYes
doubledurabilityNo
intsoundEventIndexNo
intitemSoundSetIndexNo
Map<InteractionType, ``Integer``>interactionsYes
Map<``String``, ``Integer``>interactionVarsYes
InteractionConfigurationinteractionConfigYes
StringdroppedItemAnimationYes
int``[]tagIndexesYes
Map``<``Integer, ItemAppearanceCondition[]``>itemAppearanceConditionsYes
int``[]displayEntityStatsHUDYes
ItemPullbackConfigurationpullbackConfigYes
booleanclipsGeometryNo
booleanrenderDeployablePreviewNo
ConstantValue
NULLABLE_BIT_FIELD_SIZE4
FIXED_BLOCK_SIZE147
VARIABLE_FIELD_COUNT26
VARIABLE_BLOCK_START251
MAX_SIZE1,677,721,600

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

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

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

public void serialize(@Nonnull ByteBuf buf)

Serializes this ItemBase into the given buffer.

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.