java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
All Implemented Interfaces:
NetworkSerializer<Objective,ObjectiveTask>
Direct Known Subclasses:
BountyObjectiveTask, CountObjectiveTask, ReachLocationTask, TreasureMapObjectiveTask

public abstract class ObjectiveTask extends Object implements NetworkSerializer<Objective,ObjectiveTask>
  • Field Details

  • Constructor Details

    • ObjectiveTask

      public ObjectiveTask(@Nonnull ObjectiveTaskAsset asset, int taskSetIndex, int taskIndex)
    • ObjectiveTask

      protected ObjectiveTask()
  • Method Details

    • getAsset

      @Nonnull public ObjectiveTaskAsset getAsset()
    • setAsset

      public void setAsset(@Nonnull ObjectiveTaskAsset asset)
    • isComplete

      public boolean isComplete()
    • getSerializedTransactionRecords

      @Nullable public TransactionRecord[] getSerializedTransactionRecords()
    • getNonSerializedTransactionRecords

      @Nullable public TransactionRecord[] getNonSerializedTransactionRecords()
    • getInfoMessage

      @Nonnull public Message getInfoMessage(@Nonnull Objective objective)
    • getMarkers

      @Nonnull public List<MapMarker> getMarkers()
    • addMarker

      public void addMarker(@Nonnull MapMarker marker)
    • removeMarker

      public void removeMarker(String id)
    • checkCompletion

      public abstract boolean checkCompletion()
    • setup0

      @Nullable protected abstract TransactionRecord[] setup0(@Nonnull Objective var1, @Nonnull World var2, @Nonnull Store<EntityStore> var3)
    • setup

      @Nullable public final TransactionRecord[] setup(@Nonnull Objective objective, @Nonnull Store<EntityStore> store)
    • complete

      public void complete(@Nonnull Objective objective, @Nullable ComponentAccessor<EntityStore> componentAccessor)
    • registerTaskRef

      private void registerTaskRef()
    • unregisterTaskRef

      private void unregisterTaskRef()
    • completeTransactionRecords

      public void completeTransactionRecords()
    • revertTransactionRecords

      public void revertTransactionRecords()
    • unloadTransactionRecords

      public void unloadTransactionRecords()
    • shutdownEventRegistry

      private void shutdownEventRegistry()
    • assetChanged

      public void assetChanged(@Nonnull Objective objective)
    • sendUpdateObjectiveTaskPacket

      public void sendUpdateObjectiveTaskPacket(@Nonnull Objective objective)
    • areTaskConditionsFulfilled

      public boolean areTaskConditionsFulfilled(@Nullable ComponentAccessor<EntityStore> componentAccessor, @Nullable Ref<EntityStore> ref, @Nullable Set<UUID> objectivePlayers)
    • consumeTaskConditions

      public void consumeTaskConditions(@Nullable ComponentAccessor<EntityStore> componentAccessor, @Nullable Ref<EntityStore> ref, @Nonnull Set<UUID> objectivePlayers)
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object