BountyObjectiveTask

public class BountyObjectiveTask extends ObjectiveTask implements KillTask

Class BountyObjectiveTask. Provides bountyobjectivetask functionality for the Hytale server.

java.lang.Object > ObjectiveTask > BountyObjectiveTask

Field Summary

objectivePosition

final Vector3d objectivePosition

Field objectivePosition.

spawnPosition

final Vector3i spawnPosition

Field spawnPosition.

transactionRecords

final TransactionRecord[] transactionRecords

Field transactionRecords.

npcReference

final Ref npcReference

Field npcReference.

npcUuidComponent

final UUIDComponent npcUuidComponent

Field npcUuidComponent.

npcUuid

final UUID npcUuid

Field npcUuid.

transaction

final KillTaskTransaction transaction

Field transaction.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

uuid

final UUID uuid

Field uuid.

packet

final com.hypixel.hytale.protocol.ObjectiveTask packet

Field packet.

Method Detail

BountyObjectiveTask

public public BountyObjectiveTask (@Nonnull final ObjectiveTaskAsset asset, final int taskSetIndex, final int taskIndex)

Method BountyObjectiveTask.

Parameters:
@Nonnull final ObjectiveTaskAsset asset
final int taskSetIndex
final int taskIndex

getAsset

public BountyObjectiveTaskAsset getAsset ()

Method getAsset.

setup0

protected TransactionRecord[] setup0 (@Nonnull final Objective objective, @Nonnull final World world, @Nonnull final Store store)

Method setup0.

Parameters:
@Nonnull final Objective objective
@Nonnull final World world
@Nonnull final Store store

SpawnEntityTransactionRecord

public new SpawnEntityTransactionRecord (world.getWorldConfig()

Method SpawnEntityTransactionRecord.

Parameters:
world.getWorldConfig( world.getWorldConfig(

MapMarker

public new MapMarker (getBountyMarkerIDFromUUID(npcUuid)

Method MapMarker.

Parameters:
getBountyMarkerIDFromUUID(npcUuid getBountyMarkerIDFromUUID(npcUuid

Transform

public new Transform (spawnPosition)

Method Transform.

Parameters:
spawnPosition spawnPosition

checkCompletion

public boolean checkCompletion ()

Method checkCompletion.

getBountyMarkerIDFromUUID

static String getBountyMarkerIDFromUUID (@Nonnull final UUID uuid)

Method getBountyMarkerIDFromUUID.

Parameters:
@Nonnull final UUID uuid

checkKilledEntity

public void checkKilledEntity (@Nonnull final Store store, @Nonnull final Ref npcRef, @Nonnull final Objective objective, final NPCEntity npc, final Damage damageInfo)

Method checkKilledEntity.

Parameters:
@Nonnull final Store store
@Nonnull final Ref npcRef
@Nonnull final Objective objective
final NPCEntity npc
final Damage damageInfo

toPacket

public com.hypixel.hytale.protocol.ObjectiveTask toPacket (@Nonnull final Objective objective)

Method toPacket.

Parameters:
@Nonnull final Objective objective

toString

public String toString ()

Method toString.

KeyedCodec

public new KeyedCodec ("EntityUUID", Codec.UUID_BINARY)

Method KeyedCodec.

Parameters:
"EntityUUID" "EntityUUID"
Codec.UUID_BINARY Codec.UUID_BINARY