NPCRunTestsCommand

public class NPCRunTestsCommand extends AbstractPlayerCommand

Command for npcruntest operations. Registered with the command system and callable by players.

java.lang.Object > AbstractPlayerCommand > NPCRunTestsCommand

Field Summary

testDataComponent

final NPCTestData testDataComponent

Field testDataComponent.

playerTransformComponent

final TransformComponent playerTransformComponent

Field playerTransformComponent.

npcRef

final Ref npcRef

Field npcRef.

roleString

final String roleString

Field roleString.

idx

final int idx

Field idx.

builderIndex

final int builderIndex

Field builderIndex.

npcReference

final Ref npcReference

Field npcReference.

npcTransformComponent

final TransformComponent npcTransformComponent

Field npcTransformComponent.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

flockReference

final Ref flockReference

Field flockReference.

members

final ObjectArrayList> members

Field members.

entityGroupComponent

final EntityGroup entityGroupComponent

Field entityGroupComponent.

iterator

final ObjectListIterator iterator

Field iterator.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

flockSize

final int flockSize

Field flockSize.

roleName

final String roleName

Field roleName.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

npcUUIDComponent

final UUIDComponent npcUUIDComponent

Field npcUUIDComponent.

npcPlugin

final NPCPlugin npcPlugin

Field npcPlugin.

msg

final Message msg

Field msg.

index

final int index

Field index.

result

final String result

Field result.

playerRef

final PlayerRef playerRef

Field playerRef.

targetUUID

private UUID targetUUID

Field targetUUID.

data

final NPCTestData data

Field data.

Method Detail

NPCRunTestsCommand

public public NPCRunTestsCommand ()

Method NPCRunTestsCommand.

execute

protected void execute (@Nonnull final CommandContext context, @Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world)

Method execute.

Parameters:
@Nonnull final CommandContext context
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef
@Nonnull final World world

setNextRole

static void setNextRole (@Nonnull final NPCTestData testData, @Nonnull final Ref reference, @Nonnull final Store store, @Nonnull final World world)

Method setNextRole.

Parameters:
@Nonnull final NPCTestData testData
@Nonnull final Ref reference
@Nonnull final Store store
@Nonnull final World world

cleanupNPC

static void cleanupNPC (@Nonnull final Ref ref, @Nonnull final Store store)

Method cleanupNPC.

Parameters:
@Nonnull final Ref ref
@Nonnull final Store store

spawnNPC

static void spawnNPC (@Nonnull final Ref playerReference, @Nonnull final NPCTestData testData, final int index, @Nonnull final Vector3d position, @Nullable final Vector3f rotation, @Nonnull final Store store)

Method spawnNPC.

Parameters:
@Nonnull final Ref playerReference
@Nonnull final NPCTestData testData
final int index
@Nonnull final Vector3d position
@Nullable final Vector3f rotation
@Nonnull final Store store

reportResults

static void reportResults (@Nonnull final Ref playerReference, @Nonnull final NPCTestData testData, @Nonnull final Store store)

Method reportResults.

Parameters:
@Nonnull final Ref playerReference
@Nonnull final NPCTestData testData
@Nonnull final Store store

NPCTestData

public public NPCTestData ()

Method NPCTestData.

getComponentType

public NPCTestData> getComponentType ()

Method getComponentType.

clone

public Component clone ()

Method clone.