Class GatherObjectiveTask
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
com.hypixel.hytale.builtin.adventure.objectives.task.CountObjectiveTask
com.hypixel.hytale.builtin.adventure.objectives.task.GatherObjectiveTask
- All Implemented Interfaces:
NetworkSerializer<Objective,ObjectiveTask>
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.CountObjectiveTask
countFields inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
asset, BASE_CODEC, complete, eventRegistry, markers, nonSerializedTransactionRecords, serializedTransactionRecords, taskIndex, taskRef, taskSetIndex -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGatherObjectiveTask(GatherObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
Method Summary
Modifier and TypeMethodDescriptionprivate intcountObjectiveItemInInventories(Set<UUID> participatingPlayers, ComponentAccessor<EntityStore> componentAccessor) getAsset()protected TransactionRecord[]setup0(Objective objective, World world, Store<EntityStore> store) toString()Methods inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.CountObjectiveTask
assetChanged, checkCompletion, getInfoMessage, increaseTaskCompletion, setTaskCompletion, toPacketMethods inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
addMarker, areTaskConditionsFulfilled, complete, completeTransactionRecords, consumeTaskConditions, getMarkers, getNonSerializedTransactionRecords, getSerializedTransactionRecords, isComplete, removeMarker, revertTransactionRecords, sendUpdateObjectiveTaskPacket, setAsset, setup, unloadTransactionRecords
-
Field Details
-
CODEC
-
-
Constructor Details
-
GatherObjectiveTask
public GatherObjectiveTask(@Nonnull GatherObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
GatherObjectiveTask
protected GatherObjectiveTask()
-
-
Method Details
-
getAsset
- Overrides:
getAssetin classCountObjectiveTask
-
setup0
@Nullable protected TransactionRecord[] setup0(@Nonnull Objective objective, @Nonnull World world, @Nonnull Store<EntityStore> store) - Specified by:
setup0in classObjectiveTask
-
countObjectiveItemInInventories
private int countObjectiveItemInInventories(@Nonnull Set<UUID> participatingPlayers, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
toString
- Overrides:
toStringin classObjectiveTask
-