UseEntityObjectiveTask

public class UseEntityObjectiveTask extends CountObjectiveTask

Class UseEntityObjectiveTask. Provides useentityobjectivetask functionality for the Hytale server.

java.lang.Object > CountObjectiveTask > UseEntityObjectiveTask

Field Summary

npcUUIDs

protected Set npcUUIDs

Field npcUUIDs.

objectiveUUID

final UUID objectiveUUID

Field objectiveUUID.

objectiveDataStore

final ObjectiveDataStore objectiveDataStore

Field objectiveDataStore.

taskId

final String taskId

Field taskId.

dialogOptions

final UseEntityObjectiveTaskAsset.DialogOptions dialogOptions

Field dialogOptions.

playerComponent

final Player playerComponent

Field playerComponent.

Method Detail

UseEntityObjectiveTask

public public UseEntityObjectiveTask (@Nonnull final UseEntityObjectiveTaskAsset asset, final int taskSetIndex, final int taskIndex)

Method UseEntityObjectiveTask.

Parameters:
@Nonnull final UseEntityObjectiveTaskAsset asset
final int taskSetIndex
final int taskIndex

getAsset

public UseEntityObjectiveTaskAsset getAsset ()

Method getAsset.

setup0

protected TransactionRecord[] setup0 (@Nonnull final Objective objective, @Nonnull final World world, @Nonnull final Store store)

Method setup0.

Parameters:
@Nonnull final Objective objective
@Nonnull final World world
@Nonnull final Store store

UseEntityTransactionRecord

public new UseEntityTransactionRecord (objectiveUUID, taskId)

Method UseEntityTransactionRecord.

Parameters:
objectiveUUID objectiveUUID
taskId taskId

increaseTaskCompletion

public boolean increaseTaskCompletion (@Nonnull final Store store, @Nonnull final Ref ref, final int qty, @Nonnull final Objective objective, @Nonnull final PlayerRef playerRef, final UUID npcUUID)

Method increaseTaskCompletion.

Parameters:
@Nonnull final Store store
@Nonnull final Ref ref
final int qty
@Nonnull final Objective objective
@Nonnull final PlayerRef playerRef
final UUID npcUUID

DialogPage

public new DialogPage (playerRef, dialogOptions)

Method DialogPage.

Parameters:
playerRef playerRef
dialogOptions dialogOptions

toString

public String toString ()

Method toString.