Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getObjectiveUUID()
- getObjectiveId()
- getObjectiveAsset()
- getObjectiveLineHistoryData()
- setObjectiveLineHistoryData(ObjectiveLineHistoryData)
- getObjectiveHistoryData()
- getObjectiveLineAsset()
- getPlayerUUIDs()
- getActivePlayerUUIDs()
- getCurrentTasks()
- getCurrentTaskSetIndex()
- getCurrentDescription()
- isCompleted()
- getWorldUUID()
- getMarkerUUID()
- isDirty()
- getObjectiveItemStarter()
- setObjectiveItemStarter(ItemStack)
- setup(Store)
- setupCurrentTasks(Store)
- checkTaskSetCompletion(Store)
- complete(Store)
- cancel()
- unload()
- reloadObjectiveAsset(Map)
- forEachParticipant(Consumer)
- forEachParticipant(BiConsumer, T)
- forEachParticipant(TriConsumer, T, U)
- getPosition(ComponentAccessor)
- addActivePlayerUUID(UUID)
- removeActivePlayerUUID(UUID)
- markDirty()
- consumeDirty()
- toPacket()
- toString()
Class Objective
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.Objective
- All Implemented Interfaces:
NetworkSerializable<Objective>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<Objective> The codec used to parseObjectiveinstances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActivePlayerUUID(UUID playerUUID) voidcancel()If you want to handle UI and DataStore at the same time, you want to look at this method instead:ObjectivePlugin.cancelObjective(UUID, Store)booleancheckTaskSetCompletion(Store<EntityStore> store) voidcomplete(Store<EntityStore> store) boolean<T,U> void forEachParticipant(TriConsumer<Ref<EntityStore>, T, U> consumer, T t, U u) <T> voidforEachParticipant(BiConsumer<Ref<EntityStore>, T> consumer, T meta) voidforEachParticipant(Consumer<Ref<EntityStore>> consumer) intorg.joml.Vector3dgetPosition(ComponentAccessor<EntityStore> componentAccessor) booleanbooleanisDirty()voidvoidreloadObjectiveAsset(Map<String, ObjectiveAsset> reloadedAssets) voidremoveActivePlayerUUID(UUID playerUUID) voidsetObjectiveItemStarter(ItemStack objectiveItemStarter) voidsetObjectiveLineHistoryData(ObjectiveLineHistoryData objectiveLineHistoryData) booleansetup(Store<EntityStore> componentAccessor) booleansetupCurrentTasks(Store<EntityStore> store) toPacket()toString()voidunload()
-
Field Details
-
CODEC
The codec used to parseObjectiveinstances.
-
-
Constructor Details
-
Objective
public Objective(@Nonnull ObjectiveAsset asset, @Nullable UUID objectiveUUID, @Nonnull Set<UUID> playerUUIDs, @Nonnull UUID worldUUID, @Nullable UUID markerUUID) Default Constructor for anObjectiveinstance- Parameters:
asset- The asset associated with the objectiveobjectiveUUID- TheUUIDinstance of the objective, ornullif not configuredplayerUUIDs- The set of playerUUIDinstances for this objectiveworldUUID- TheUUIDinstance of the affiliated worldmarkerUUID- TheUUIDinstance of the marker, ornullif not configured
-
-
Method Details
-
getObjectiveUUID
-
getObjectiveId
-
getObjectiveAsset
-
getObjectiveLineHistoryData
-
setObjectiveLineHistoryData
public void setObjectiveLineHistoryData(@Nullable ObjectiveLineHistoryData objectiveLineHistoryData) -
getObjectiveHistoryData
-
getObjectiveLineAsset
-
getPlayerUUIDs
-
getActivePlayerUUIDs
-
getCurrentTasks
-
getCurrentTaskSetIndex
public int getCurrentTaskSetIndex() -
getCurrentDescription
-
isCompleted
public boolean isCompleted() -
getWorldUUID
-
getMarkerUUID
-
isDirty
public boolean isDirty() -
getObjectiveItemStarter
-
setObjectiveItemStarter
-
setup
-
setupCurrentTasks
-
checkTaskSetCompletion
-
complete
-
cancel
public void cancel()If you want to handle UI and DataStore at the same time, you want to look at this method instead:ObjectivePlugin.cancelObjective(UUID, Store) -
unload
public void unload() -
reloadObjectiveAsset
-
forEachParticipant
-
forEachParticipant
-
forEachParticipant
public <T,U> void forEachParticipant(@Nonnull TriConsumer<Ref<EntityStore>, T, U> consumer, @Nonnull T t, @Nonnull U u) -
getPosition
@Nullable public org.joml.Vector3d getPosition(@Nonnull ComponentAccessor<EntityStore> componentAccessor) -
addActivePlayerUUID
-
removeActivePlayerUUID
-
markDirty
public void markDirty() -
consumeDirty
public boolean consumeDirty() -
toPacket
- Specified by:
toPacketin interfaceNetworkSerializable<Objective>
-
toString
-