ObjectivePlugin
Package: com.hypixel.hytale.builtin.adventure.objectives
public class ObjectivePlugin extends JavaPluginThe main plugin class for the adventure objectives system. Registers assets, components, systems, tasks, completions, events, and commands. Manages objective lifecycle including starting, completing, canceling, and reloading objectives and objective lines.
Key Methods
Section titled “Key Methods”| Modifier | Return Type | Signature |
|---|---|---|
public static | ObjectivePlugin | get() |
public | ComponentType<EntityStore, ObjectiveHistoryComponent> | getObjectiveHistoryComponentType() |
public | Model | getObjectiveLocationMarkerModel() |
public | ObjectiveDataStore | getObjectiveDataStore() |
public | ComponentType<EntityStore, ReachLocationMarker> | getReachLocationMarkerComponentType() |
public | ComponentType<EntityStore, ObjectiveLocationMarker> | getObjectiveLocationMarkerComponentType() |
public | <T extends ObjectiveTaskAsset, U extends ObjectiveTask> void | registerTask( String id, Class<T> assetClass, Codec<T> assetCodec, Class<U> implementationClass, Codec<U> implementationCodec, TriFunction<T, Integer, Integer, U> generator ) |
public | <T extends ObjectiveCompletionAsset, U extends ObjectiveCompletion> void | registerCompletion( String id, Class<T> assetClass, Codec<T> codec, Function<T, U> generator ) |
public | ObjectiveTask | createTask(ObjectiveTaskAsset task, int taskSetIndex, int taskIndex) |
public | ObjectiveCompletion | createCompletion(ObjectiveCompletionAsset completionAsset) |
public | Objective | startObjective( String objectiveId, Set<UUID> playerUUIDs, UUID worldUUID, UUID markerUUID, Store<EntityStore> store ) |
public | Objective | startObjective( String objectiveId, UUID objectiveUUID, Set<UUID> playerUUIDs, UUID worldUUID, UUID markerUUID, Store<EntityStore> store ) |
public | boolean | canPlayerDoObjective(Player player, String objectiveAssetId) |
public | Objective | startObjectiveLine( Store<EntityStore> store, String objectiveLineId, Set<UUID> playerUUIDs, UUID worldUUID, UUID markerUUID ) |
public | boolean | canPlayerDoObjectiveLine(Player player, String objectiveLineId) |
public | void | objectiveCompleted(Objective objective, Store<EntityStore> store) |
public | void | storeObjectiveHistoryData(Objective objective) |
public | void | storeObjectiveLineHistoryData(ObjectiveLineHistoryData objectiveLineHistoryData, Set<UUID> playerUUIDs) |
public | void | cancelObjective(UUID objectiveUUID, Store<EntityStore> store) |
public | void | untrackObjectiveForPlayer(Objective objective, UUID playerUUID) |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.