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 Stringid
firstRun
final
void
firstRun
(@Nonnull final InteractionType type, @Nonnull final InteractionContext context, @Nonnull final CooldownHandler cooldownHandler)
Method firstRun.
- Parameters:
@Nonnull final InteractionTypetype@Nonnull final InteractionContextcontext@Nonnull final CooldownHandlercooldownHandler
toString
public
String
toString
()
Method toString.
KeyedCodec
public
new
KeyedCodec
("Context", Codec.STRING)
Method KeyedCodec.
- Parameters:
"Context""Context"Codec.STRINGCodec.STRING