HyCodeYourTale
classpublicabstractPriority 3

ObjectiveTask

com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask

implements NetworkSerializer<Objective, com.hypixel.hytale.protocol.ObjectiveTask>

18

Methods

18

Public Methods

7

Fields

2

Constructors

Constants

BuilderCodec<ObjectiveTask>BASE_CODEC= BuilderCodec.abstractBuilder(ObjectiveTask.class) .append( new KeyedCodec<>("Task"...
CodecMapCodec<ObjectiveTask>CODEC= new CodecMapCodec<>("Type")

Constructors

protected
ObjectiveTask()
public
ObjectiveTask(ObjectiveTaskAsset asset, int taskSetIndex, int taskIndex)

Methods

Public Methods (18)

public
void addMarker(MapMarker marker)
public
void assetChanged(Objective objective)
public
boolean checkCompletion()
public
void complete(Objective objective, ComponentAccessor<EntityStore> componentAccessor)
public
void completeTransactionRecords()
public
ObjectiveTaskAsset getAsset()
@Nonnull
public
Message getInfoMessage(Objective objective)
@Nonnull
public
List<MapMarker> getMarkers()
@Nonnull
public
TransactionRecord[] getNonSerializedTransactionRecords()
@Nullable
public
TransactionRecord[] getSerializedTransactionRecords()
@Nullable
public
boolean isComplete()
public
void removeMarker(String id)
public
void revertTransactionRecords()
public
void sendUpdateObjectiveTaskPacket(Objective objective)
public
void setAsset(ObjectiveTaskAsset asset)
publicfinal
TransactionRecord[] setup(Objective objective, Store<EntityStore> store)
@Nullable
public
String toString()
@Nonnull@Override
public
void unloadTransactionRecords()

Fields

Protected Fields (7)

protectedObjectiveTaskAsset asset
protectedboolean complete
protectedEventRegistry eventRegistry
protectedTransactionRecord[] nonSerializedTransactionRecords
protectedTransactionRecord[] serializedTransactionRecords
protectedint taskIndex
protectedint taskSetIndex

Related Classes