Contents
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:
InventoryChangeAware, NetworkSerializer<Objective, ObjectiveTask>
-
Field Summary
FieldsFields inherited from class ObjectiveTask
BASE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionGatherObjectiveTask(GatherObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
Method Summary
Modifier and TypeMethodDescriptiongetAsset()voidonInventoryChange(Objective objective, Ref<EntityStore> playerRef, Store<EntityStore> store, InventoryChangeEvent event) Called when an inventory change occurs on a player participating in the given objective.toString()Methods inherited from class CountObjectiveTask
assetChanged, checkCompletion, increaseTaskCompletion, setTaskCompletion, toPacketMethods inherited from class 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)
-
-
Method Details
-
getAsset
- Overrides:
getAssetin classCountObjectiveTask
-
onInventoryChange
public void onInventoryChange(@Nonnull Objective objective, @Nonnull Ref<EntityStore> playerRef, @Nonnull Store<EntityStore> store, @Nonnull InventoryChangeEvent event) Description copied from interface:InventoryChangeAwareCalled when an inventory change occurs on a player participating in the given objective.- Specified by:
onInventoryChangein interfaceInventoryChangeAware- Parameters:
objective- The objective this task belongs to.playerRef- The ref to the player whose inventory changed.store- The entity store.event- The inventory change event.
-
toString
- Overrides:
toStringin classObjectiveTask
-