Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- register(String, PointEntry)
- unregister(String)
- getPoint(String)
- getPoints()
- getPointsWithTags(String...)
- getPointsMap()
- hasPoint(String)
- markSpatialDirty()
- setWorld(World)
- getWorld()
- generateUniquePointId()
- queryRadius(Vector3d, double)
- queryRadius(Vector3d, double, int)
- queryRadius(Vector3d, double, String)
- queryRadius(Vector3d, double, List)
- queryRadius(Vector3d, double, int, List)
- getPointsByTag(int)
- setTag(String, String, String)
- removeTag(String, String)
- isViewing(UUID)
- addViewer(UUID, PointManager.ViewSource)
- removeViewer(UUID, PointManager.ViewSource)
- getViewerUuids()
- clearViewers()
- setPlayerSelection(UUID, String)
- getPlayerSelection(UUID)
- setSelectionObserver(UUID, PointManager.SelectionObserver)
- clearSelectionObserver(UUID, PointManager.SelectionObserver)
- sendPointDisplay(PlayerRef)
- notifyViewersAdd(PointEntry)
- notifyViewersRemove(String)
- buildDisplayEntry(PointEntry)
- clone()
Class PointManager
java.lang.Object
com.hypixel.hytale.builtin.points.manager.PointManager
- All Implemented Interfaces:
Resource<EntityStore>, Cloneable
World-level resource holding every
PointEntry. Mutations run on the world thread and
mark the spatial index dirty; queryRadius(Vector3d, double) rebuilds it lazily before serving Java
consumers. Tool viewers receive incremental display packets as points change.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
FieldsFields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViewer(UUID playerUuid, PointManager.ViewSource source) buildDisplayEntry(PointEntry point) voidclearSelectionObserver(UUID playerUuid, PointManager.SelectionObserver observer) voidclone()getPlayerSelection(UUID playerUuid) getPointsByTag(int tagIndex) getPointsWithTags(String... tags) getWorld()booleanbooleanvoidvoidnotifyViewersAdd(PointEntry point) voidnotifyViewersRemove(String pointId) queryRadius(org.joml.Vector3d center, double radius) Returns every enabled point withinradiusblocks ofcenter.queryRadius(org.joml.Vector3d center, double radius, int tagIndex) voidqueryRadius(org.joml.Vector3d center, double radius, int tagIndex, List<PointEntry> out) queryRadius(org.joml.Vector3d center, double radius, String tag) voidqueryRadius(org.joml.Vector3d center, double radius, List<PointEntry> out) voidregister(String id, PointEntry entry) booleanvoidremoveViewer(UUID playerUuid, PointManager.ViewSource source) voidsendPointDisplay(PlayerRef playerRef) voidsetPlayerSelection(UUID playerUuid, String pointId) voidsetSelectionObserver(UUID playerUuid, PointManager.SelectionObserver observer) booleanvoidvoidunregister(String id)
-
Field Details
-
CODEC
-
-
Constructor Details
-
PointManager
public PointManager()
-
-
Method Details
-
register
-
unregister
-
getPoint
-
getPoints
-
getPointsWithTags
-
getPointsMap
-
hasPoint
-
markSpatialDirty
public void markSpatialDirty() -
setWorld
-
getWorld
-
generateUniquePointId
-
queryRadius
Returns every enabled point withinradiusblocks ofcenter. The spatial index is rebuilt lazily on first use after any mutation. -
queryRadius
@Nonnull public List<PointEntry> queryRadius(@Nonnull org.joml.Vector3d center, double radius, int tagIndex) -
queryRadius
@Nonnull public List<PointEntry> queryRadius(@Nonnull org.joml.Vector3d center, double radius, @Nonnull String tag) -
queryRadius
public void queryRadius(@Nonnull org.joml.Vector3d center, double radius, @Nonnull List<PointEntry> out) -
queryRadius
public void queryRadius(@Nonnull org.joml.Vector3d center, double radius, int tagIndex, @Nonnull List<PointEntry> out) -
getPointsByTag
-
setTag
-
removeTag
-
isViewing
-
addViewer
-
removeViewer
-
getViewerUuids
-
clearViewers
public void clearViewers() -
setPlayerSelection
-
getPlayerSelection
-
setSelectionObserver
public void setSelectionObserver(@Nonnull UUID playerUuid, @Nonnull PointManager.SelectionObserver observer) -
clearSelectionObserver
public void clearSelectionObserver(@Nonnull UUID playerUuid, @Nonnull PointManager.SelectionObserver observer) -
sendPointDisplay
-
notifyViewersAdd
-
notifyViewersRemove
-
buildDisplayEntry
-
clone
- Specified by:
clonein interfaceResource<EntityStore>- Returns:
- a clone instance of the original resource instance.
-