PathPlugin

public class PathPlugin extends JavaPlugin

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

java.lang.Object > JavaPlugin > PathPlugin

Field Summary

pathMarkerModel

private Model pathMarkerModel

Field pathMarkerModel.

commandRegistry

final CommandRegistry commandRegistry

Field commandRegistry.

eventRegistry

final EventRegistry eventRegistry

Field eventRegistry.

entityStoreRegistry

final ComponentRegistryProxy entityStoreRegistry

Field entityStoreRegistry.

config

final HytaleServerConfig.Module config

Field config.

pathMarkerModelId

final String pathMarkerModelId

Field pathMarkerModelId.

modelAsset

final ModelAsset modelAsset

Field modelAsset.

worldPathDataResource

final WorldPathData worldPathDataResource

Field worldPathDataResource.

Method Detail

get

static PathPlugin get ()

Method get.

PathPlugin

public public PathPlugin (@Nonnull final JavaPluginInit init)

Method PathPlugin.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

PrefabPathCommand

public new PrefabPathCommand ()

Method PrefabPathCommand.

WorldPathCommand

public new WorldPathCommand ()

Method WorldPathCommand.

PrefabPasteEventSystem

public new PrefabPasteEventSystem ()

Method PrefabPasteEventSystem.

KDTree

public new KDTree (Ref::isValid)

Method KDTree.

Parameters:
Ref::isValid Ref::isValid

PathSpatialSystem

public new PathSpatialSystem (this.prefabPathSpatialResource)

Method PathSpatialSystem.

Parameters:
this.prefabPathSpatialResource this.prefabPathSpatialResource

start

protected void start ()

Method start.

IllegalStateException

public new IllegalStateException (String.format("Default path marker '%s' not found", "NPC_Path_Marker")

Method IllegalStateException.

Parameters:
String.format("Default path marker '%s' not found"
"NPC_Path_Marker" "NPC_Path_Marker"

getWorldPathDataResourceType

public WorldPathData> getWorldPathDataResourceType ()

Method getWorldPathDataResourceType.

getPrefabPathSpatialResource

public EntityStore>> getPrefabPathSpatialResource ()

Method getPrefabPathSpatialResource.

getWorldPathBuilderComponentType

public WorldPathBuilder> getWorldPathBuilderComponentType ()

Method getWorldPathBuilderComponentType.

getPathMarkerModel

public Model getPathMarkerModel ()

Method getPathMarkerModel.

onModelsChanged

protected void onModelsChanged (@Nonnull final LoadedAssetsEvent> event)

Method onModelsChanged.

Parameters:
@Nonnull final LoadedAssetsEvent> event

SystemDependency

public new SystemDependency (Order.AFTER, BuilderToolsPlugin.PrefabPasteEventSystem.class, OrderPriority.CLOSEST)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
BuilderToolsPlugin.PrefabPasteEventSystem.class BuilderToolsPlugin.PrefabPasteEventSystem.class
OrderPriority.CLOSEST OrderPriority.CLOSEST

handle

public void handle (@Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final PrefabPasteEvent event)

Method handle.

Parameters:
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer
@Nonnull final PrefabPasteEvent event

getDependencies

public Set> getDependencies ()

Method getDependencies.