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 | ComponentType<ChunkStore, TreasureChestBlock> | getTreasureChestComponentType() |
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) |
public | void | addPlayerToExistingObjective(@Nonnull Store<EntityStore> store, @Nonnull UUID playerUUID, @Nonnull UUID objectiveUUID) |
public | void | removePlayerFromExistingObjective(@Nonnull Store<EntityStore> store, @Nonnull UUID playerUUID, @Nonnull UUID objectiveUUID) |
@Nonnull public | String | getObjectiveDataDump() |
Inner Types
Section titled “Inner Types”ObjectivePlugin.ObjectivePluginConfig— codec-based configuration for the objective data store provider
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.