GatherObjectiveTask

public class GatherObjectiveTask extends CountObjectiveTask

Class GatherObjectiveTask. Provides gatherobjectivetask functionality for the Hytale server.

java.lang.Object > CountObjectiveTask > GatherObjectiveTask

Field Summary

participatingPlayers

final Set participatingPlayers

Field participatingPlayers.

countItem

final int countItem

Field countItem.

livingEntity

final LivingEntity livingEntity

Field livingEntity.

ref

final Ref ref

Field ref.

refWorld

final World refWorld

Field refWorld.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

activePlayerUUIDs

final Set activePlayerUUIDs

Field activePlayerUUIDs.

count

final int count

Field count.

blockTypeOrSet

final BlockTagOrItemIdField blockTypeOrSet

Field blockTypeOrSet.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

playerRef

final Ref playerRef

Field playerRef.

playerComponent

final Player playerComponent

Field playerComponent.

inventory

final CombinedItemContainer inventory

Field inventory.

Method Detail

GatherObjectiveTask

public public GatherObjectiveTask (@Nonnull final GatherObjectiveTaskAsset asset, final int taskSetIndex, final int taskIndex)

Method GatherObjectiveTask.

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

getAsset

public GatherObjectiveTaskAsset 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

countObjectiveItemInInventories

private int countObjectiveItemInInventories (@Nonnull final Set participatingPlayers, @Nonnull final ComponentAccessor componentAccessor)

Method countObjectiveItemInInventories.

Parameters:
@Nonnull final Set participatingPlayers
@Nonnull final ComponentAccessor componentAccessor

toString

public String toString ()

Method toString.