abstract class ObjectiveTask implementsNetworkSerializer,com.hypixel.hytale.protocol.ObjectiveTask>
Class ObjectiveTask. Provides objectivetask functionality for the Hytale server.
java.lang.Object > ObjectiveTask
Field Summary
asset
Field asset.
complete
Field complete.
eventRegistry
Field eventRegistry.
serializedTransactionRecords
Field serializedTransactionRecords.
nonSerializedTransactionRecords
Field nonSerializedTransactionRecords.
taskIndex
Field taskIndex.
markers
Field markers.
taskSetIndex
Field taskSetIndex.
world
Field world.
transactionMessage
Field transactionMessage.
mapMarkerPositions
Field mapMarkerPositions.
objectiveUUIDString
Field objectiveUUIDString.
mapMarkerPosition
Field mapMarkerPosition.
transactionRecords
Field transactionRecords.
playerComponent
Field playerComponent.
updateObjectiveTaskPacket
Field updateObjectiveTaskPacket.
universe
Field universe.
player
Field player.
taskConditions
Field taskConditions.
Method Detail
ObjectiveTask
public
ObjectiveTask
(@Nonnull final ObjectiveTaskAsset asset, final int taskSetIndex, final int taskIndex)
Method ObjectiveTask.
- Parameters:
@Nonnull final ObjectiveTaskAssetassetfinal inttaskSetIndexfinal inttaskIndex
isComplete
boolean
isComplete
()
Method isComplete.
getSerializedTransactionRecords
TransactionRecord[]
getSerializedTransactionRecords
()
Method getSerializedTransactionRecords.
getNonSerializedTransactionRecords
TransactionRecord[]
getNonSerializedTransactionRecords
()
Method getNonSerializedTransactionRecords.
getMarkers
List
getMarkers
()
Method getMarkers.
removeMarker
void
removeMarker
(final String id)
Method removeMarker.
- Parameters:
final Stringid
WorldTransactionRecord
new
WorldTransactionRecord
()
Method WorldTransactionRecord.
IllegalStateException
new
IllegalStateException
("ObjectiveTask.eventRegistry is not null, setup()
Method IllegalStateException.
- Parameters:
"ObjectiveTask.eventRegistry is notnullsetup(setup(
EventRegistry
new
EventRegistry
(new CopyOnWriteArrayListMethod EventRegistry.
- Parameters:
newCopyOnWriteArrayList(
MapMarker
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(newTransform(mapMarkerPosition
complete
void
complete
(@Nonnull final Objective objective, @Nullable final ComponentAccessor componentAccessor)
Method complete.
- Parameters:
@Nonnull final Objectiveobjective@Nullable final ComponentAccessorcomponentAccessor
registerTaskRef
void
registerTaskRef
()
Method registerTaskRef.
unregisterTaskRef
void
unregisterTaskRef
()
Method unregisterTaskRef.
completeTransactionRecords
void
completeTransactionRecords
()
Method completeTransactionRecords.
revertTransactionRecords
void
revertTransactionRecords
()
Method revertTransactionRecords.
unloadTransactionRecords
void
unloadTransactionRecords
()
Method unloadTransactionRecords.
shutdownEventRegistry
void
shutdownEventRegistry
()
Method shutdownEventRegistry.
sendUpdateObjectiveTaskPacket
Method sendUpdateObjectiveTaskPacket.
- Parameters:
@Nonnull final Objectiveobjective
UpdateObjectiveTask
new
UpdateObjectiveTask
(objective.getObjectiveUUID()
Method UpdateObjectiveTask.
- Parameters:
objective.getObjectiveUUID(objective.getObjectiveUUID(
areTaskConditionsFulfilled
boolean
areTaskConditionsFulfilled
(@Nullable final ComponentAccessor componentAccessor, @Nullable final Ref ref, @Nullable final Set objectivePlayers)
Method areTaskConditionsFulfilled.
- Parameters:
@Nullable final ComponentAccessorcomponentAccessor@Nullable final Refref@Nullable final SetobjectivePlayers
consumeTaskConditions
void
consumeTaskConditions
(@Nullable final ComponentAccessor componentAccessor, @Nullable final Ref ref, @Nonnull final Set objectivePlayers)
Method consumeTaskConditions.
- Parameters:
@Nullable final ComponentAccessorcomponentAccessor@Nullable final Refref@Nonnull final SetobjectivePlayers
toString
String
toString
()
Method toString.