public class NPCDumpCommand extends NPCWorldCommandBase
Command for npcdum operations. Registered with the command system and callable by players.
java.lang.Object > NPCWorldCommandBase > NPCDumpCommand
Field Summary
sb
final
StringBuilder
sb
Field sb.
role
final
Role
role
Field role.
componentInfoList
final
List
componentInfoList
Field componentInfoList.
obj
final
JsonObject
obj
Field obj.
componentInfo
final
ComponentInfo
componentInfo
Field componentInfo.
nestedComponent
final
IAnnotatedComponent
nestedComponent
Field nestedComponent.
object
final
JsonObject
object
Field object.
array
final
JsonArray
array
Field array.
fields
final
List
fields
Field fields.
Method Detail
NPCDumpCommand
public
public
NPCDumpCommand
()
Method NPCDumpCommand.
execute
protected
void
execute
(@Nonnull final CommandContext context, @Nonnull final NPCEntity npc, @Nonnull final World world, @Nonnull final Store store, @Nonnull final Ref ref)
Method execute.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final NPCEntitynpc@Nonnull final Worldworld@Nonnull final Storestore@Nonnull final Refref
StringBuilder
public
new
StringBuilder
(npc.getRoleName()
Method StringBuilder.
- Parameters:
npc.getRoleName(npc.getRoleName(
dumpComponent
static
void
dumpComponent
(@Nonnull final Role role, @Nonnull final IAnnotatedComponent component, final int index, final int nestingDepth, @Nonnull final List infoList)
Method dumpComponent.
- Parameters:
@Nonnull final Rolerole@Nonnull final IAnnotatedComponentcomponentfinal intindexfinal intnestingDepth@Nonnull final ListinfoList
ComponentInfo
public
new
ComponentInfo
(component.getClass()
Method ComponentInfo.
- Parameters:
component.getClass(component.getClass(
dumpComponentsAsJson
static
void
dumpComponentsAsJson
(@Nonnull final Role role, @Nonnull final IAnnotatedComponent component, final int index, final int nestingDepth, @Nonnull final JsonElement parent)
Method dumpComponentsAsJson.
- Parameters:
@Nonnull final Rolerole@Nonnull final IAnnotatedComponentcomponentfinal intindexfinal intnestingDepth@Nonnull final JsonElementparent
JsonPrimitive
public
new
JsonPrimitive
(componentInfo.getName()
Method JsonPrimitive.
- Parameters:
componentInfo.getName(componentInfo.getName(