NPCObjectivesPlugin

public class NPCObjectivesPlugin extends JavaPlugin

The main plugin class for Npcobjectives. This plugin provides gameplay features for the Hytale server. Extend this class to create a plugin.

java.lang.Object > JavaPlugin > NPCObjectivesPlugin

Field Summary

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

objectiveDataStore

final ObjectiveDataStore objectiveDataStore

Field objectiveDataStore.

objectiveUUIDsForTaskId

final Set objectiveUUIDsForTaskId

Field objectiveUUIDsForTaskId.

objective

final Objective objective

Field objective.

taskAsset

final UseEntityObjectiveTaskAsset taskAsset

Field taskAsset.

world

final World world

Field world.

Method Detail

get

static NPCObjectivesPlugin get ()

Method get.

NPCObjectivesPlugin

public public NPCObjectivesPlugin (@Nonnull final JavaPluginInit init)

Method NPCObjectivesPlugin.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

SpawnBeaconCheckRemovalSystem

public new SpawnBeaconCheckRemovalSystem ()

Method SpawnBeaconCheckRemovalSystem.

KillTrackerSystem

public new KillTrackerSystem ()

Method KillTrackerSystem.

hasTask

static boolean hasTask (@Nonnull final UUID playerUUID, @Nonnull final UUID npcId, @Nonnull final String taskId)

Method hasTask.

Parameters:
@Nonnull final UUID playerUUID
@Nonnull final UUID npcId
@Nonnull final String taskId

updateTaskCompletion

static String updateTaskCompletion (@Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final UUID npcId, @Nonnull final String taskId)

Method updateTaskCompletion.

Parameters:
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef
@Nonnull final UUID npcId
@Nonnull final String taskId

startObjective

static void startObjective (@Nonnull final Ref playerReference, @Nonnull final String taskId, @Nonnull final Store store)

Method startObjective.

Parameters:
@Nonnull final Ref playerReference
@Nonnull final String taskId
@Nonnull final Store store

getKillTrackerResourceType

public KillTrackerResource> getKillTrackerResourceType ()

Method getKillTrackerResourceType.