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.
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 CommandContextcontext@Nonnull final Storestore@Nonnull final Refref@Nonnull final PlayerRefplayerRef@Nonnull final Worldworld
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 NPCTestDatatestData@Nonnull final Refreference@Nonnull final Storestore@Nonnull final Worldworld
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 RefplayerReference@Nonnull final NPCTestDatatestDatafinal intindex@Nonnull final Vector3dposition@Nullable final Vector3frotation@Nonnull final Storestore
reportResults
static
void
reportResults
(@Nonnull final Ref playerReference, @Nonnull final NPCTestData testData, @Nonnull final Store store)
Method reportResults.
- Parameters:
@Nonnull final RefplayerReference@Nonnull final NPCTestDatatestData@Nonnull final Storestore
NPCTestData
public
public
NPCTestData
()
Method NPCTestData.
getComponentType
public
NPCTestData>
getComponentType
()
Method getComponentType.