Contents
Class RailPathRefreshResolver
java.lang.Object
com.hypixel.hytale.server.npc.movement.controllers.RailPathRefreshResolver
Stateless helper that applies mid-traversal rail refresh policy.
Caller-owned responsibilities:
- Refresh cadence / gating (time-distance threshold checks).
- Probe execution to build candidate rails.
- Blocked probe detection source.
- State-machine transitions and logging side-effects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordstatic interface -
Method Summary
Modifier and TypeMethodDescriptionresolve(RailPath railPath, RailPath candidateRailPath, org.joml.Vector3dc selfPosition, double remainingDistance, double pathTolerance, org.joml.Vector3d anchorScratch, RailPathRefreshResolver.RemainingDistanceResolver remainingDistanceResolver, RailPathRefreshResolver.CandidateRailProbe candidateRailProbe, BooleanSupplier blockedProbeSupplier, BooleanSupplier replacementAllowedSupplier)
-
Method Details
-
resolve
@Nonnull public static RailPathRefreshResolver.RefreshDecision resolve(@Nonnull RailPath railPath, @Nonnull RailPath candidateRailPath, @Nonnull org.joml.Vector3dc selfPosition, double remainingDistance, double pathTolerance, @Nonnull org.joml.Vector3d anchorScratch, @Nonnull RailPathRefreshResolver.RemainingDistanceResolver remainingDistanceResolver, @Nonnull RailPathRefreshResolver.CandidateRailProbe candidateRailProbe, @Nonnull BooleanSupplier blockedProbeSupplier, @Nonnull BooleanSupplier replacementAllowedSupplier)
-