ContextualUseNPCInteraction

public class ContextualUseNPCInteraction extends SimpleInstantInteraction

Class ContextualUseNPCInteraction. Provides contextualusenpcinteraction functionality for the Hytale server.

java.lang.Object > SimpleInstantInteraction > ContextualUseNPCInteraction

Field Summary

context

protected String context

Field context.

targetRef

final Ref targetRef

Field targetRef.

commandBuffer

final CommandBuffer commandBuffer

Field commandBuffer.

ref

final Ref ref

Field ref.

playerComponent

final Player playerComponent

Field playerComponent.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

Method Detail

ContextualUseNPCInteraction

public public ContextualUseNPCInteraction (final String id)

Method ContextualUseNPCInteraction.

Parameters:
final String id

firstRun

Method firstRun.

Parameters:
@Nonnull final InteractionType type
@Nonnull final InteractionContext context
@Nonnull final CooldownHandler cooldownHandler

toString

public String toString ()

Method toString.

KeyedCodec

public new KeyedCodec ("Context", Codec.STRING)

Method KeyedCodec.

Parameters:
"Context" "Context"
Codec.STRING Codec.STRING