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.
getInput
protected
double
getInput
(final int selfIndex, @Nonnull final ArchetypeChunk archetypeChunk, final Ref target, final CommandBuffer commandBuffer, final EvaluationContext context)
Method getInput.
- Parameters:
final intselfIndex@Nonnull final ArchetypeChunkarchetypeChunkfinal Reftargetfinal CommandBuffercommandBufferfinal EvaluationContextcontext
filterNPC
static
boolean
filterNPC
(@Nonnull final Role role, final Ref ref, @Nonnull final NearbyCountCondition _this, @Nonnull final ComponentAccessor componentAccessor)
Method filterNPC.
- Parameters:
@Nonnull final Rolerolefinal Refref@Nonnull final NearbyCountCondition_this@Nonnull final ComponentAccessorcomponentAccessor
toString
public
String
toString
()
Method toString.