Objective
Package: com.hypixel.hytale.builtin.adventure.objectives
public class Objective implements NetworkSerializable<com.hypixel.hytale.protocol.Objective>Represents an active objective instance, tracking its UUID, assigned players, current task set, completion state, and world reference. Manages task setup, completion flow, objective line progression, asset reloading, and packet serialization.
Key Methods
Section titled “Key Methods”| Modifier | Return Type | Signature |
|---|---|---|
public static final | BuilderCodec<Objective> CODEC = | BuilderCodec.builder(Objective.class, Objective::new) |
public | UUID | getObjectiveUUID() |
public | String | getObjectiveId() |
public | ObjectiveAsset | getObjectiveAsset() |
public | ObjectiveLineHistoryData | getObjectiveLineHistoryData() |
public | void | setObjectiveLineHistoryData(ObjectiveLineHistoryData objectiveLineHistoryData) |
public | ObjectiveHistoryData | getObjectiveHistoryData() |
public | ObjectiveLineAsset | getObjectiveLineAsset() |
public | Set<UUID> | getPlayerUUIDs() |
public | Set<UUID> | getActivePlayerUUIDs() |
public | ObjectiveTask[] | getCurrentTasks() |
public | int | getCurrentTaskSetIndex() |
public | String | getCurrentDescription() |
public | boolean | isCompleted() |
public | UUID | getWorldUUID() |
public | UUID | getMarkerUUID() |
public | boolean | isDirty() |
public | ItemStack | getObjectiveItemStarter() |
public | void | setObjectiveItemStarter(ItemStack objectiveItemStarter) |
public | boolean | setup(Store<EntityStore> componentAccessor) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.