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
Method deserialize.
- Parameters:
@Nonnull final ByteBufbuffinal intoffset
switch
public
return
switch
(typeId)
Method switch.
- Parameters:
typeIdtypeId
computeBytesConsumed
static
int
computeBytesConsumed
(@Nonnull final ByteBuf buf, final int offset)
Method computeBytesConsumed.
- Parameters:
@Nonnull final ByteBufbuffinal intoffset
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 ByteBufbuf
computeSizeWithTypeId
public
int
computeSizeWithTypeId
()
Method computeSizeWithTypeId.
validateStructure
Method validateStructure.
- Parameters:
@Nonnull final ByteBufbufferfinal intoffset