NearbyCountCondition

public class NearbyCountCondition extends ScaledCurveCondition

Class NearbyCountCondition. Provides nearbycountcondition functionality for the Hytale server.

java.lang.Object > ScaledCurveCondition > NearbyCountCondition

Field Summary

range

protected double range

Field range.

npcGroup

protected String npcGroup

Field npcGroup.

npcGroupIndex

protected int npcGroupIndex

Field npcGroupIndex.

includePlayers

protected boolean includePlayers

Field includePlayers.

positionCache

final PositionCache positionCache

Field positionCache.

selfNpcComponent

final NPCEntity selfNpcComponent

Field selfNpcComponent.

Method Detail

NearbyCountCondition

public protected NearbyCountCondition ()

Method NearbyCountCondition.

getRange

public double getRange ()

Method getRange.

getNpcGroup

public String getNpcGroup ()

Method getNpcGroup.

getNpcGroupIndex

public int getNpcGroupIndex ()

Method getNpcGroupIndex.

setupNPC

public void setupNPC (@Nonnull final Role role)

Method setupNPC.

Parameters:
@Nonnull final Role role

getInput

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

Method getInput.

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

filterNPC

static boolean filterNPC (@Nonnull final Role role, final Ref ref, @Nonnull final NearbyCountCondition _this, @Nonnull final ComponentAccessor componentAccessor)

Method filterNPC.

Parameters:
@Nonnull final Role role
final Ref ref
@Nonnull final NearbyCountCondition _this
@Nonnull final ComponentAccessor componentAccessor

toString

public String toString ()

Method toString.