Class TreasureMapObjectiveTask
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
com.hypixel.hytale.builtin.adventure.objectives.task.TreasureMapObjectiveTask
- All Implemented Interfaces:
NetworkSerializer<Objective,ObjectiveTask>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate intstatic final BuilderCodec<TreasureMapObjectiveTask> private intFields inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
asset, BASE_CODEC, complete, eventRegistry, markers, nonSerializedTransactionRecords, serializedTransactionRecords, taskIndex, taskRef, taskSetIndex -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTreasureMapObjectiveTask(TreasureMapObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
Method Summary
Modifier and TypeMethodDescriptionprivate Vector3icalculateChestSpawnPosition(TreasureMapObjectiveTaskAsset.ChestConfig chestConfig, Objective objective, World world, ComponentAccessor<EntityStore> componentAccessor) booleangetAsset()getChestMarkerIDFromUUID(UUID uuid) private voidonTreasureChestOpeningEvent(Objective objective, TreasureChestOpeningEvent event) protected TransactionRecord[]setup0(Objective objective, World world, Store<EntityStore> store) private TransactionRecordspawnChest(Objective objective, World world, TreasureMapObjectiveTaskAsset.ChestConfig chestConfig, ComponentAccessor<EntityStore> componentAccessor) private TreasureChestStatespawnChestBlock(World world, Vector3i conditionPosition, String chestBlockTypeKey, SpawnTreasureChestTransactionRecord transactionRecord) 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
-
CHEST_SPAWN_TRY
public static final int CHEST_SPAWN_TRY- See Also:
-
currentCompletion
private int currentCompletion -
chestCount
private int chestCount -
chestUUIDs
-
-
Constructor Details
-
TreasureMapObjectiveTask
public TreasureMapObjectiveTask(@Nonnull TreasureMapObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
TreasureMapObjectiveTask
protected TreasureMapObjectiveTask()
-
-
Method Details
-
getAsset
- Overrides:
getAssetin classObjectiveTask
-
getChestMarkerIDFromUUID
-
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
-
onTreasureChestOpeningEvent
private void onTreasureChestOpeningEvent(@Nonnull Objective objective, @Nonnull TreasureChestOpeningEvent event) -
spawnChest
@Nonnull private TransactionRecord spawnChest(@Nonnull Objective objective, @Nonnull World world, @Nonnull TreasureMapObjectiveTaskAsset.ChestConfig chestConfig, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
spawnChestBlock
@Nullable private TreasureChestState spawnChestBlock(@Nonnull World world, @Nonnull Vector3i conditionPosition, String chestBlockTypeKey, @Nonnull SpawnTreasureChestTransactionRecord transactionRecord) -
calculateChestSpawnPosition
@Nullable private Vector3i calculateChestSpawnPosition(@Nonnull TreasureMapObjectiveTaskAsset.ChestConfig chestConfig, @Nonnull Objective objective, @Nonnull World world, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
toPacket
-
toString
- Overrides:
toStringin classObjectiveTask
-