public class TreasureMapObjectiveTask extends ObjectiveTask
Class TreasureMapObjectiveTask. Provides treasuremapobjectivetask functionality for the Hytale server.
java.lang.Object > ObjectiveTask > TreasureMapObjectiveTask
Field Summary
currentCompletion
private
int
currentCompletion
Field currentCompletion.
chestCount
private
int
chestCount
Field chestCount.
chestConfigs
final
TreasureMapObjectiveTaskAsset.ChestConfig[]
chestConfigs
Field chestConfigs.
chestUUID
final
UUID
chestUUID
Field chestUUID.
chestMarkerID
final
String
chestMarkerID
Field chestMarkerID.
playerRef
final
Ref
playerRef
Field playerRef.
store
final
Store
store
Field store.
conditionPosition
final
Vector3i
conditionPosition
Field conditionPosition.
transactionRecord
final
SpawnTreasureChestTransactionRecord
transactionRecord
Field transactionRecord.
treasureChestState
final
TreasureChestState
treasureChestState
Field treasureChestState.
stacks
final
List
stacks
Field stacks.
worldChunk
final
WorldChunk
worldChunk
Field worldChunk.
blockState
final
BlockState
blockState
Field blockState.
packet
final
com.hypixel.hytale.protocol.ObjectiveTask
packet
Field packet.
Method Detail
TreasureMapObjectiveTask
public
public
TreasureMapObjectiveTask
(@Nonnull final TreasureMapObjectiveTaskAsset asset, final int taskSetIndex, final int taskIndex)
Method TreasureMapObjectiveTask.
- Parameters:
@Nonnull final TreasureMapObjectiveTaskAssetassetfinal inttaskSetIndexfinal inttaskIndex
getChestMarkerIDFromUUID
public
String
getChestMarkerIDFromUUID
(@Nonnull final UUID uuid)
Method getChestMarkerIDFromUUID.
- Parameters:
@Nonnull final UUIDuuid
setup0
protected
TransactionRecord[]
setup0
(@Nonnull final Objective objective, @Nonnull final World world, @Nonnull final Store store)
Method setup0.
- Parameters:
@Nonnull final Objectiveobjective@Nonnull final Worldworld@Nonnull final Storestore
checkCompletion
public
boolean
checkCompletion
()
Method checkCompletion.
onTreasureChestOpeningEvent
private
void
onTreasureChestOpeningEvent
(@Nonnull final Objective objective, @Nonnull final TreasureChestOpeningEvent event)
Method onTreasureChestOpeningEvent.
- Parameters:
@Nonnull final Objectiveobjective@Nonnull final TreasureChestOpeningEventevent
spawnChest
private
TransactionRecord
spawnChest
(@Nonnull final Objective objective, @Nonnull final World world, @Nonnull final TreasureMapObjectiveTaskAsset.ChestConfig chestConfig, @Nonnull final ComponentAccessor componentAccessor)
Method spawnChest.
- Parameters:
@Nonnull final Objectiveobjective@Nonnull final Worldworld@Nonnull final TreasureMapObjectiveTaskAsset.ChestConfigchestConfig@Nonnull final ComponentAccessorcomponentAccessor
SpawnTreasureChestTransactionRecord
public
new
SpawnTreasureChestTransactionRecord
(world.getWorldConfig()
Method SpawnTreasureChestTransactionRecord.
- Parameters:
world.getWorldConfig(world.getWorldConfig(
MapMarker
public
new
MapMarker
(this.getChestMarkerIDFromUUID(chestUUID)
Method MapMarker.
- Parameters:
this.getChestMarkerIDFromUUID(chestUUIDthis.getChestMarkerIDFromUUID(chestUUID
Transform
public
new
Transform
(conditionPosition)
Method Transform.
- Parameters:
conditionPositionconditionPosition
spawnChestBlock
private
TreasureChestState
spawnChestBlock
(@Nonnull final World world, @Nonnull final Vector3i conditionPosition, final String chestBlockTypeKey, @Nonnull final SpawnTreasureChestTransactionRecord transactionRecord)
Method spawnChestBlock.
- Parameters:
@Nonnull final Worldworld@Nonnull final Vector3iconditionPositionfinal StringchestBlockTypeKey@Nonnull final SpawnTreasureChestTransactionRecordtransactionRecord
calculateChestSpawnPosition
private
Vector3i
calculateChestSpawnPosition
(@Nonnull final TreasureMapObjectiveTaskAsset.ChestConfig chestConfig, @Nonnull final Objective objective, @Nonnull final World world, @Nonnull final ComponentAccessor componentAccessor)
Method calculateChestSpawnPosition.
- Parameters:
@Nonnull final TreasureMapObjectiveTaskAsset.ChestConfigchestConfig@Nonnull final Objectiveobjective@Nonnull final Worldworld@Nonnull final ComponentAccessorcomponentAccessor
toString
public
String
toString
()
Method toString.