Class BountyObjectiveTask
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
com.hypixel.hytale.builtin.adventure.npcobjectives.task.BountyObjectiveTask
- All Implemented Interfaces:
KillTask,NetworkSerializer<Objective,ObjectiveTask>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<BountyObjectiveTask> (package private) boolean(package private) UUIDFields inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
asset, BASE_CODEC, complete, eventRegistry, markers, nonSerializedTransactionRecords, serializedTransactionRecords, taskIndex, taskRef, taskSetIndex -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBountyObjectiveTask(ObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcheckKilledEntity(Store<EntityStore> store, Ref<EntityStore> npcRef, Objective objective, NPCEntity npc, Damage damageInfo) getAsset()static Stringprotected TransactionRecord[]setup0(Objective objective, World world, Store<EntityStore> store) toString()Methods inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
addMarker, areTaskConditionsFulfilled, assetChanged, complete, completeTransactionRecords, consumeTaskConditions, getInfoMessage, getMarkers, getNonSerializedTransactionRecords, getSerializedTransactionRecords, isComplete, removeMarker, revertTransactionRecords, sendUpdateObjectiveTaskPacket, setAsset, setup, unloadTransactionRecords
-
Field Details
-
CODEC
-
completed
boolean completed -
entityUuid
UUID entityUuid
-
-
Constructor Details
-
BountyObjectiveTask
-
BountyObjectiveTask
protected BountyObjectiveTask()
-
-
Method Details
-
getAsset
- Overrides:
getAssetin classObjectiveTask
-
setup0
@Nonnull protected TransactionRecord[] setup0(@Nonnull Objective objective, @Nonnull World world, @Nonnull Store<EntityStore> store) - Specified by:
setup0in classObjectiveTask
-
checkCompletion
public boolean checkCompletion()- Specified by:
checkCompletionin classObjectiveTask
-
getBountyMarkerIDFromUUID
-
checkKilledEntity
public void checkKilledEntity(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> npcRef, @Nonnull Objective objective, NPCEntity npc, Damage damageInfo) - Specified by:
checkKilledEntityin interfaceKillTask
-
toPacket
- Specified by:
toPacketin interfaceNetworkSerializer<Objective,ObjectiveTask>
-
toString
- Overrides:
toStringin classObjectiveTask
-