PrefabPathCollection

public class PrefabPathCollection

Class PrefabPathCollection. Provides prefabpathcollection functionality for the Hytale server.

java.lang.Object > PrefabPathCollection

Field Summary

set

final PathSet set

Field set.

path

final IPrefabPath path

Field path.

nameIndex

final int nameIndex

Field nameIndex.

dist2

final double dist2

Field dist2.

removed

final IPrefabPath removed

Field removed.

nearestWp

final Vector3d nearestWp

Field nearestWp.

Method Detail

PrefabPathCollection

public public PrefabPathCollection (final int id)

Method PrefabPathCollection.

Parameters:
final int id

getNearestPrefabPath

public IPrefabPath getNearestPrefabPath (final int nameIndex, @Nonnull final Vector3d position, final Set disallowedPaths, @Nonnull final ComponentAccessor componentAccessor)

Method getNearestPrefabPath.

Parameters:
final int nameIndex
@Nonnull final Vector3d position
final Set disallowedPaths
@Nonnull final ComponentAccessor componentAccessor

getPath

public IPrefabPath getPath (final UUID id)

Method getPath.

Parameters:
final UUID id

getOrConstructPath

public IPrefabPath getOrConstructPath (@Nonnull final UUID id, @Nonnull final String name, @Nonnull final Int2ObjectConcurrentHashMap.IntBiObjFunction pathGenerator)

Method getOrConstructPath.

Parameters:
@Nonnull final UUID id
@Nonnull final String name
@Nonnull final Int2ObjectConcurrentHashMap.IntBiObjFunction pathGenerator

PathSet

public new PathSet ()

Method PathSet.

removePathWaypoint

public void removePathWaypoint (final UUID id, final int index)

Method removePathWaypoint.

Parameters:
final UUID id
final int index

unloadPathWaypoint

public void unloadPathWaypoint (final UUID id, final int index)

Method unloadPathWaypoint.

Parameters:
final UUID id
final int index

removePath

public void removePath (final UUID id)

Method removePath.

Parameters:
final UUID id

isEmpty

public boolean isEmpty ()

Method isEmpty.

forEach

public void forEach (final BiConsumer consumer)

Method forEach.

Parameters:
final BiConsumer consumer

add

public void add (final IPrefabPath path)

Method add.

Parameters:
final IPrefabPath path

remove

public void remove (final IPrefabPath path)

Method remove.

Parameters:
final IPrefabPath path

getNearestPath

public IPrefabPath getNearestPath (@Nonnull final Vector3d position, @Nullable final Set disallowedPaths, final ComponentAccessor componentAccessor)

Method getNearestPath.

Parameters:
@Nonnull final Vector3d position
@Nullable final Set disallowedPaths
final ComponentAccessor componentAccessor