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 intid
getNearestPrefabPath
public
IPrefabPath
getNearestPrefabPath
(final int nameIndex, @Nonnull final Vector3d position, final Set disallowedPaths, @Nonnull final ComponentAccessor componentAccessor)
Method getNearestPrefabPath.
- Parameters:
final intnameIndex@Nonnull final Vector3dpositionfinal SetdisallowedPaths@Nonnull final ComponentAccessorcomponentAccessor
getOrConstructPath
public
IPrefabPath
getOrConstructPath
(@Nonnull final UUID id, @Nonnull final String name, @Nonnull final Int2ObjectConcurrentHashMap.IntBiObjFunction pathGenerator)
Method getOrConstructPath.
- Parameters:
@Nonnull final UUIDid@Nonnull final Stringname@Nonnull final Int2ObjectConcurrentHashMap.IntBiObjFunctionpathGenerator
PathSet
public
new
PathSet
()
Method PathSet.
removePathWaypoint
public
void
removePathWaypoint
(final UUID id, final int index)
Method removePathWaypoint.
- Parameters:
final UUIDidfinal intindex
unloadPathWaypoint
public
void
unloadPathWaypoint
(final UUID id, final int index)
Method unloadPathWaypoint.
- Parameters:
final UUIDidfinal intindex
removePath
public
void
removePath
(final UUID id)
Method removePath.
- Parameters:
final UUIDid
isEmpty
public
boolean
isEmpty
()
Method isEmpty.
forEach
public
void
forEach
(final BiConsumer consumer)
Method forEach.
- Parameters:
final BiConsumerconsumer
getNearestPath
public
IPrefabPath
getNearestPath
(@Nonnull final Vector3d position, @Nullable final Set disallowedPaths, final ComponentAccessor componentAccessor)
Method getNearestPath.
- Parameters:
@Nonnull final Vector3dposition@Nullable final SetdisallowedPathsfinal ComponentAccessorcomponentAccessor