Skip to content

ObjectiveDataStore

Package: com.hypixel.hytale.builtin.adventure.objectives

public class ObjectiveDataStore

Manages persistent storage and runtime tracking of all active objectives. Handles objective lifecycle (load, save, remove), per-player entity task mappings, and typed task reference sets.

ModifierReturn TypeSignature
publicObjectivegetObjective(UUID objectiveUUID)
publicMap<String, Set<UUID>>getEntityTasksForPlayer(UUID playerUUID)
publicCollection<Objective>getObjectiveCollection()
public<T extends ObjectiveTask> Set<ObjectiveTaskRef<T>>getTaskRefsForType(Class<T> taskClass)
public<T extends ObjectiveTask> voidaddTaskRef(ObjectiveTaskRef<T> taskRef)
public<T extends ObjectiveTask> voidremoveTaskRef(ObjectiveTaskRef<T> taskRef)
public<T extends ObjectiveTask> voidregisterTaskRef(Class<T> taskClass)
publicvoidsaveToDisk(String objectiveId, Objective objective)
publicvoidsaveToDiskAllObjectives()
publicbooleanremoveFromDisk(String objectiveId)
publicbooleanaddObjective(UUID objectiveUUID, Objective objective)
publicvoidremoveObjective(UUID objectiveUUID)
publicvoidaddEntityTaskForPlayer(UUID playerUUID, String taskId, UUID objectiveUUID)
publicvoidremoveEntityTask(UUID objectiveUUID, String taskId)
publicvoidremoveEntityTaskForPlayer(UUID objectiveUUID, String taskId, UUID playerUUID)
publicObjectiveloadObjective(UUID objectiveUUID, Store<EntityStore> store)
publicvoidunloadObjective(UUID objectiveUUID)
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.