NPCFlockCommand

public class NPCFlockCommand extends AbstractCommandCollection

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

java.lang.Object > AbstractCommandCollection > NPCFlockCommand

Field Summary

transformComponent

final TransformComponent transformComponent

Field transformComponent.

position

final Vector3d position

Field position.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

headRotation

final Vector3f headRotation

Field headRotation.

lookYaw

final float lookYaw

Field lookYaw.

x

final double x

Field x.

y

final double y

Field y.

z

final double z

Field z.

results

final ObjectList> results

Field results.

targetNpcComponent

final NPCEntity targetNpcComponent

Field targetNpcComponent.

entityTransformComponent

final TransformComponent entityTransformComponent

Field entityTransformComponent.

entityPosition

final Vector3d entityPosition

Field entityPosition.

count

final int count

Field count.

success

final boolean success

Field success.

status

final String status

Field status.

Method Detail

NPCFlockCommand

public public NPCFlockCommand ()

Method NPCFlockCommand.

LeaveCommand

public new LeaveCommand ()

Method LeaveCommand.

GrabCommand

public new GrabCommand ()

Method GrabCommand.

JoinCommand

public new JoinCommand ()

Method JoinCommand.

PlayerLeaveCommand

public new PlayerLeaveCommand ()

Method PlayerLeaveCommand.

forNpcEntitiesInViewCone

static int forNpcEntitiesInViewCone (@Nonnull final Ref playerReference, @Nonnull final Store store, @Nonnull final BiPredicate, NPCEntity> predicate)

Method forNpcEntitiesInViewCone.

Parameters:
@Nonnull final Ref playerReference
@Nonnull final Store store
@Nonnull final BiPredicate, NPCEntity> predicate

anyEntityInViewCone

static boolean anyEntityInViewCone (@Nonnull final Ref playerReference, @Nonnull final Store store, @Nonnull final Predicate> predicate)

Method anyEntityInViewCone.

Parameters:
@Nonnull final Ref playerReference
@Nonnull final Store store
@Nonnull final Predicate> predicate

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