Class CountObjectiveTask
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
com.hypixel.hytale.builtin.adventure.objectives.task.CountObjectiveTask
- All Implemented Interfaces:
NetworkSerializer<Objective,ObjectiveTask>
- Direct Known Subclasses:
CraftObjectiveTask,GatherObjectiveTask,KillObjectiveTask,UseBlockObjectiveTask,UseEntityObjectiveTask
-
Field Summary
FieldsFields inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
asset, BASE_CODEC, complete, eventRegistry, markers, nonSerializedTransactionRecords, serializedTransactionRecords, taskIndex, taskRef, taskSetIndex -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCountObjectiveTask(CountObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidassetChanged(Objective objective) booleangetAsset()getInfoMessage(Objective objective) voidincreaseTaskCompletion(Store<EntityStore> store, Ref<EntityStore> ref, int qty, Objective objective) voidsetTaskCompletion(Store<EntityStore> store, Ref<EntityStore> ref, int qty, Objective objective) private voidupdateTaskCompletion(Store<EntityStore> store, Ref<EntityStore> ref, Objective objective) Methods 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, setup0, toString, unloadTransactionRecords
-
Field Details
-
CODEC
-
count
protected int count
-
-
Constructor Details
-
CountObjectiveTask
-
CountObjectiveTask
protected CountObjectiveTask()
-
-
Method Details
-
getAsset
- Overrides:
getAssetin classObjectiveTask
-
getInfoMessage
- Overrides:
getInfoMessagein classObjectiveTask
-
checkCompletion
public boolean checkCompletion()- Specified by:
checkCompletionin classObjectiveTask
-
assetChanged
- Overrides:
assetChangedin classObjectiveTask
-
increaseTaskCompletion
public void increaseTaskCompletion(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, int qty, @Nonnull Objective objective) -
setTaskCompletion
public void setTaskCompletion(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, int qty, @Nonnull Objective objective) -
updateTaskCompletion
private void updateTaskCompletion(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull Objective objective) -
toPacket
-