HasTargetCondition

public class HasTargetCondition extends SimpleCondition

Class HasTargetCondition. Provides hastargetcondition functionality for the Hytale server.

java.lang.Object > SimpleCondition > HasTargetCondition

Field Summary

targetSlot

protected String targetSlot

Field targetSlot.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

Method Detail

HasTargetCondition

public protected HasTargetCondition ()

Method HasTargetCondition.

getTargetSlot

public String getTargetSlot ()

Method getTargetSlot.

evaluate

protected boolean evaluate (final int selfIndex, @Nonnull final ArchetypeChunk archetypeChunk, final Ref target, final CommandBuffer commandBuffer, final EvaluationContext context)

Method evaluate.

Parameters:
final int selfIndex
@Nonnull final ArchetypeChunk archetypeChunk
final Ref target
final CommandBuffer commandBuffer
final EvaluationContext context

toString

public String toString ()

Method toString.

KeyedCodec

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

Method KeyedCodec.

Parameters:
"TargetSlot" "TargetSlot"
Codec.STRING Codec.STRING