Interaction

abstract class Interaction

Class Interaction. Provides interaction functionality for the Hytale server.

java.lang.Object > Interaction

Field Summary

waitForDataFrom

public WaitForDataFrom waitForDataFrom

Field waitForDataFrom.

effects

public InteractionEffects effects

Field effects.

horizontalSpeedMultiplier

public float horizontalSpeedMultiplier

Field horizontalSpeedMultiplier.

runTime

public float runTime

Field runTime.

cancelOnItemChange

public boolean cancelOnItemChange

Field cancelOnItemChange.

rules

public InteractionRules rules

Field rules.

tags

public int[] tags

Field tags.

camera

public InteractionCameraSettings camera

Field camera.

typeId

final int typeId

Field typeId.

typeIdLen

final int typeIdLen

Field typeIdLen.

length

final int length

Field length.

startPos

final int startPos

Field startPos.

Method Detail

Interaction

public public Interaction ()

Method Interaction.

deserialize

static Interaction deserialize (@Nonnull final ByteBuf buf, final int offset)

Method deserialize.

Parameters:
@Nonnull final ByteBuf buf
final int offset

switch

public return switch (typeId)

Method switch.

Parameters:
typeId typeId

computeBytesConsumed

static int computeBytesConsumed (@Nonnull final ByteBuf buf, final int offset)

Method computeBytesConsumed.

Parameters:
@Nonnull final ByteBuf buf
final int offset

getTypeId

public int getTypeId ()

Method getTypeId.

IllegalStateException

public new IllegalStateException ("Unknown subtype: " + this.getClass()

Method IllegalStateException.

Parameters:
"Unknown subtype: " + this.getClass(

serializeWithTypeId

public int serializeWithTypeId (@Nonnull final ByteBuf buf)

Method serializeWithTypeId.

Parameters:
@Nonnull final ByteBuf buf

computeSizeWithTypeId

public int computeSizeWithTypeId ()

Method computeSizeWithTypeId.

validateStructure

static ValidationResult validateStructure (@Nonnull final ByteBuf buffer, final int offset)

Method validateStructure.

Parameters:
@Nonnull final ByteBuf buffer
final int offset