public class NPCPathCommand extends AbstractCommandCollection
Command for npcpat operations. Registered with the command system and callable by players.
java.lang.Object > AbstractCommandCollection > NPCPathCommand
Field Summary
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
headRotationComponent
final
HeadRotation
headRotationComponent
Field headRotationComponent.
instructionsString
final
String
instructionsString
Field instructionsString.
instructions
final
ArrayDeque
instructions
Field instructions.
parts
final
String[]
parts
Field parts.
rotation
final
float
rotation
Field rotation.
distance
final
double
distance
Field distance.
sides
final
Integer
sides
Field sides.
angle
final
float
angle
Field angle.
length
final
double
length
Field length.
position
final
Vector3d
position
Field position.
headRotation
final
Vector3f
headRotation
Field headRotation.
Method Detail
NPCPathCommand
public
public
NPCPathCommand
()
Method NPCPathCommand.
SetPathCommand
public
new
SetPathCommand
()
Method SetPathCommand.
PolygonPathCommand
public
new
PolygonPathCommand
()
Method PolygonPathCommand.
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
parseInstructions
private
ArrayDeque
parseInstructions
(@Nonnull final CommandContext context, @Nonnull final String str)
Method parseInstructions.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final Stringstr
RelativeWaypointDefinition
public
new
RelativeWaypointDefinition
(rotation, distance)
Method RelativeWaypointDefinition.
- Parameters:
rotationrotationdistancedistance