API reference Obsidian.API.Configuration
NetworkConfiguration record
public sealed record NetworkConfiguration : IEquatable<NetworkConfiguration>
In Obsidian.API.
Constructors
public NetworkConfiguration();Properties
CompressionLevel
public int CompressionLevel { get; set; }The zlib level compressed packets are written at: 1 (fastest) to 9 (smallest), 0 to store them uncompressed, or -1 for zlib's default (6), which vanilla uses. Lower levels spend less CPU on each packet and send more bytes. Values outside -1 to 9 are clamped. Applies to connections that join after it changes.
CompressionThreshold
public int CompressionThreshold { get; set; }The max amount of bytes that can be sent to the client before compression is required.
ConnectionThrottle
public long ConnectionThrottle { get; set; }The time in milliseconds to wait before an ip is allowed to try and connect again.
public long KeepAliveInterval { get; set; }public long KeepAliveTimeoutInterval { get; set; }MulitplayerDebugMode
public bool MulitplayerDebugMode { get; set; }If true, each login/client gets a random username where multiple connections from the same host will be allowed.
ShouldThrottle
public bool ShouldThrottle { get; }Returns true if NetworkConfiguration.ConnectionThrottle has a value greater than 0.