Interface NetworkContext


@NonExtendable public interface NetworkContext
What a NetworkBehavior sees during one network tick. Owner thread only.
  • Method Details

    • type

      @NotNull @NotNull NetworkType type()
    • endpoints

      @NotNull @NotNull List<NetworkEndpoint> 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

      @NotNull @NotNull Predicate<ResourceVariant> filter()
      What every transport of the network accepts, bound to the current tag snapshot.
    • transactions

      @NotNull @NotNull TransactionManager transactions()
    • tags

      @NotNull @NotNull ResourceTags tags()
    • gameTime

      long gameTime()