Interface NetworkContext
@NonExtendable
public interface NetworkContext
What a
NetworkBehavior sees during one network tick. Owner thread only.-
Method Summary
Modifier and TypeMethodDescription@NotNull List<NetworkEndpoint> Attached ports, sorted by position then side, so distribution is deterministic (§19).@NotNull Predicate<ResourceVariant> filter()What every transport of the network accepts, bound to the current tag snapshot.longgameTime()longMost the network may move this tick (its slowest transport's rate).@NotNull ResourceTagstags()@NotNull TransactionManager@NotNull NetworkTypetype()
-
Method Details
-
type
-
endpoints
Attached ports, sorted by position then side, so distribution is deterministic (§19). -
ratePerTick
long ratePerTick()Most the network may move this tick (its slowest transport's rate). -
filter
What every transport of the network accepts, bound to the current tag snapshot. -
transactions
-
tags
-
gameTime
long gameTime()
-