Class ObjectiveTask
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 Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectiveTaskAssetstatic final BuilderCodec<ObjectiveTask> static final CodecMapCodec<ObjectiveTask> protected booleanprotected EventRegistryprotected TransactionRecord[]protected TransactionRecord[]protected intprotected ObjectiveTaskRef<? extends ObjectiveTask> protected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObjectiveTask(ObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanareTaskConditionsFulfilled(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> ref, Set<UUID> objectivePlayers) voidassetChanged(Objective objective) abstract booleanvoidcomplete(Objective objective, ComponentAccessor<EntityStore> componentAccessor) voidvoidconsumeTaskConditions(ComponentAccessor<EntityStore> componentAccessor, Ref<EntityStore> ref, Set<UUID> objectivePlayers) getAsset()getInfoMessage(Objective objective) booleanprivate voidvoidremoveMarker(String id) voidvoidsendUpdateObjectiveTaskPacket(Objective objective) voidsetAsset(ObjectiveTaskAsset asset) final TransactionRecord[]setup(Objective objective, Store<EntityStore> store) protected abstract TransactionRecord[]setup0(Objective var1, World var2, Store<EntityStore> var3) private voidtoString()voidprivate voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.core.io.NetworkSerializer
toPacket
-
Field Details
-
CODEC
-
BASE_CODEC
-
asset
-
complete
protected boolean complete -
eventRegistry
-
serializedTransactionRecords
-
nonSerializedTransactionRecords
-
taskIndex
protected int taskIndex -
markers
-
taskSetIndex
protected int taskSetIndex -
taskRef
-
-
Constructor Details
-
ObjectiveTask
-
ObjectiveTask
protected ObjectiveTask()
-
-
Method Details
-
getAsset
-
setAsset
-
isComplete
public boolean isComplete() -
getSerializedTransactionRecords
-
getNonSerializedTransactionRecords
-
getInfoMessage
-
getMarkers
-
addMarker
-
removeMarker
-
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
-
sendUpdateObjectiveTaskPacket
-
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
-