Interaction
Package: com.hypixel.hytale.protocol
public abstract class InteractionAbstract 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.
Fields
Section titled “Fields”| Type | Name | Nullable | Description |
|---|---|---|---|
| WaitForDataFrom | waitForDataFrom | No | Default: WaitForDataFrom.Client. |
| InteractionEffects | effects | Yes | |
float | horizontalSpeedMultiplier | No | |
float | runTime | No | |
boolean | cancelOnItemChange | No | |
Map<GameMode, InteractionSettings> | settings | Yes | |
| InteractionRules | rules | Yes | |
int``[] | tags | Yes | |
| InteractionCameraSettings | camera | Yes |
Serialization Layout
Section titled “Serialization Layout”| Constant | Value |
|---|---|
MAX_SIZE | 1,677,721,605 |
Methods
Section titled “Methods”Concrete subtypes are identified by a VarInt type ID prefix during deserialization.
public int computeSize()Returns the serialized size in bytes.
Related Types
Section titled “Related Types”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.