public class ObjectiveCompleteCommand extends AbstractCommandCollection
Command for objectivecomplet operations. Registered with the command system and callable by players.
java.lang.Object > AbstractCommandCollection > ObjectiveCompleteCommand
Field Summary
playerComponent
final
Player
playerComponent
Field playerComponent.
activeObjectiveUUIDs
final
Set
activeObjectiveUUIDs
Field activeObjectiveUUIDs.
objectiveDataStore
final
ObjectiveDataStore
objectiveDataStore
Field objectiveDataStore.
objective
final
Objective
objective
Field objective.
objectiveId
final
String
objectiveId
Field objectiveId.
taskIndex
final
int
taskIndex
Field taskIndex.
tasks
final
ObjectiveTask[]
tasks
Field tasks.
Method Detail
ObjectiveCompleteCommand
public
public
ObjectiveCompleteCommand
()
Method ObjectiveCompleteCommand.
CompleteTaskCommand
public
new
CompleteTaskCommand
()
Method CompleteTaskCommand.
CompleteTaskSetCommand
public
new
CompleteTaskSetCommand
()
Method CompleteTaskSetCommand.
CompleteObjectiveCommand
public
new
CompleteObjectiveCommand
()
Method CompleteObjectiveCommand.
getObjectiveFromId
static
Objective
getObjectiveFromId
(@Nonnull final Ref participantRef, @Nonnull final String objectiveId, @Nonnull final ComponentAccessor componentAccessor)
Method getObjectiveFromId.
- Parameters:
@Nonnull final RefparticipantRef@Nonnull final StringobjectiveId@Nonnull final ComponentAccessorcomponentAccessor
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