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
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::isValidRef::isValid
PathSpatialSystem
public
new
PathSpatialSystem
(this.prefabPathSpatialResource)
Method PathSpatialSystem.
- Parameters:
this.prefabPathSpatialResourcethis.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' notfound""NPC_Path_Marker""NPC_Path_Marker"
getWorldPathDataResourceType
public
WorldPathData>
getWorldPathDataResourceType
()
Method getWorldPathDataResourceType.
getPrefabPathSpatialResource
public
EntityStore>>
getPrefabPathSpatialResource
()
Method getPrefabPathSpatialResource.
getWorldPathBuilderComponentType
public
WorldPathBuilder>
getWorldPathBuilderComponentType
()
Method getWorldPathBuilderComponentType.
SystemDependency
public
new
SystemDependency
(Order.AFTER, BuilderToolsPlugin.PrefabPasteEventSystem.class, OrderPriority.CLOSEST)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERBuilderToolsPlugin.PrefabPasteEventSystem.classBuilderToolsPlugin.PrefabPasteEventSystem.classOrderPriority.CLOSESTOrderPriority.CLOSEST
handle
public
void
handle
(@Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer, @Nonnull final PrefabPasteEvent event)
Method handle.
- Parameters:
@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer@Nonnull final PrefabPasteEventevent
getDependencies
public
Set>
getDependencies
()
Method getDependencies.