Skip to content

Interaction

Package: com.hypixel.hytale.protocol

public abstract class Interaction

Abstract polymorphic base class for the interaction/ability system. Uses VarInt type-ID discriminated union with 45 concrete subtypes. Contains common fields for effects, timing, rules, and camera.

TypeNameNullableDescription
WaitForDataFromwaitForDataFromNoDefault: WaitForDataFrom.Client.
InteractionEffectseffectsYes
floathorizontalSpeedMultiplierNo
floatrunTimeNo
booleancancelOnItemChangeNo
Map<GameMode, InteractionSettings>settingsYes
InteractionRulesrulesYes
int``[]tagsYes
InteractionCameraSettingscameraYes
ConstantValue
MAX_SIZE1,677,721,605

Concrete subtypes are identified by a VarInt type ID prefix during deserialization.

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.