ObjectiveTask

abstract class ObjectiveTask implements NetworkSerializer, com.hypixel.hytale.protocol.ObjectiveTask>

Class ObjectiveTask. Provides objectivetask functionality for the Hytale server.

java.lang.Object > ObjectiveTask

Field Summary

asset

protected ObjectiveTaskAsset asset

Field asset.

complete

protected boolean complete

Field complete.

eventRegistry

protected EventRegistry eventRegistry

Field eventRegistry.

serializedTransactionRecords

protected TransactionRecord[] serializedTransactionRecords

Field serializedTransactionRecords.

nonSerializedTransactionRecords

protected TransactionRecord[] nonSerializedTransactionRecords

Field nonSerializedTransactionRecords.

taskIndex

protected int taskIndex

Field taskIndex.

markers

protected List markers

Field markers.

taskSetIndex

protected int taskSetIndex

Field taskSetIndex.

world

final World world

Field world.

transactionMessage

final String transactionMessage

Field transactionMessage.

mapMarkerPositions

final Vector3i[] mapMarkerPositions

Field mapMarkerPositions.

objectiveUUIDString

final String objectiveUUIDString

Field objectiveUUIDString.

mapMarkerPosition

final Vector3i mapMarkerPosition

Field mapMarkerPosition.

transactionRecords

final TransactionRecord[] transactionRecords

Field transactionRecords.

playerComponent

final Player playerComponent

Field playerComponent.

updateObjectiveTaskPacket

final UpdateObjectiveTask updateObjectiveTaskPacket

Field updateObjectiveTaskPacket.

universe

final Universe universe

Field universe.

player

final PlayerRef player

Field player.

taskConditions

final TaskConditionAsset[] taskConditions

Field taskConditions.

Method Detail

ObjectiveTask

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

Method ObjectiveTask.

Parameters:
@Nonnull final ObjectiveTaskAsset asset
final int taskSetIndex
final int taskIndex

getAsset

public ObjectiveTaskAsset getAsset ()

Method getAsset.

setAsset

public void setAsset (@Nonnull final ObjectiveTaskAsset asset)

Method setAsset.

Parameters:
@Nonnull final ObjectiveTaskAsset asset

isComplete

public boolean isComplete ()

Method isComplete.

getSerializedTransactionRecords

public TransactionRecord[] getSerializedTransactionRecords ()

Method getSerializedTransactionRecords.

getNonSerializedTransactionRecords

public TransactionRecord[] getNonSerializedTransactionRecords ()

Method getNonSerializedTransactionRecords.

getInfoMessage

public Message getInfoMessage (@Nonnull final Objective objective)

Method getInfoMessage.

Parameters:
@Nonnull final Objective objective

getMarkers

public List getMarkers ()

Method getMarkers.

addMarker

public void addMarker (@Nonnull final MapMarker marker)

Method addMarker.

Parameters:
@Nonnull final MapMarker marker

removeMarker

public void removeMarker (final String id)

Method removeMarker.

Parameters:
final String id

setup

final TransactionRecord[] setup (@Nonnull final Objective objective, @Nonnull final Store store)

Method setup.

Parameters:
@Nonnull final Objective objective
@Nonnull final Store store

WorldTransactionRecord

public new WorldTransactionRecord ()

Method WorldTransactionRecord.

IllegalStateException

public new IllegalStateException ("ObjectiveTask.eventRegistry is not null, setup()

Method IllegalStateException.

Parameters:
"ObjectiveTask.eventRegistry is not null
setup( setup(

EventRegistry

public new EventRegistry (new CopyOnWriteArrayList()

Method EventRegistry.

Parameters:
new CopyOnWriteArrayList(

MapMarker

public new MapMarker ("ObjectiveMarker_" + objectiveUUIDString + "_" + i, "Objective", "Home.png", PositionUtil.toTransformPacket(new Transform(mapMarkerPosition)

Method MapMarker.

Parameters:
"ObjectiveMarker_" + objectiveUUIDString + "_" + i
"Objective" "Objective"
"Home.png" "Home.png"
PositionUtil.toTransformPacket(new Transform(mapMarkerPosition

complete

public void complete (@Nonnull final Objective objective, @Nullable final ComponentAccessor componentAccessor)

Method complete.

Parameters:
@Nonnull final Objective objective
@Nullable final ComponentAccessor componentAccessor

registerTaskRef

private void registerTaskRef ()

Method registerTaskRef.

unregisterTaskRef

private void unregisterTaskRef ()

Method unregisterTaskRef.

completeTransactionRecords

public void completeTransactionRecords ()

Method completeTransactionRecords.

revertTransactionRecords

public void revertTransactionRecords ()

Method revertTransactionRecords.

unloadTransactionRecords

public void unloadTransactionRecords ()

Method unloadTransactionRecords.

shutdownEventRegistry

private void shutdownEventRegistry ()

Method shutdownEventRegistry.

assetChanged

public void assetChanged (@Nonnull final Objective objective)

Method assetChanged.

Parameters:
@Nonnull final Objective objective

sendUpdateObjectiveTaskPacket

public void sendUpdateObjectiveTaskPacket (@Nonnull final Objective objective)

Method sendUpdateObjectiveTaskPacket.

Parameters:
@Nonnull final Objective objective

UpdateObjectiveTask

public new UpdateObjectiveTask (objective.getObjectiveUUID()

Method UpdateObjectiveTask.

Parameters:
objective.getObjectiveUUID( objective.getObjectiveUUID(

areTaskConditionsFulfilled

public boolean areTaskConditionsFulfilled (@Nullable final ComponentAccessor componentAccessor, @Nullable final Ref ref, @Nullable final Set objectivePlayers)

Method areTaskConditionsFulfilled.

Parameters:
@Nullable final ComponentAccessor componentAccessor
@Nullable final Ref ref
@Nullable final Set objectivePlayers

consumeTaskConditions

public void consumeTaskConditions (@Nullable final ComponentAccessor componentAccessor, @Nullable final Ref ref, @Nonnull final Set objectivePlayers)

Method consumeTaskConditions.

Parameters:
@Nullable final ComponentAccessor componentAccessor
@Nullable final Ref ref
@Nonnull final Set objectivePlayers

toString

public String toString ()

Method toString.