Table of Contents

Class AdviceInputs

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

What the advice depends on.

public sealed record AdviceInputs : IEquatable<AdviceInputs>
Inheritance
AdviceInputs
Implements
Inherited Members

Constructors

AdviceInputs(ServerType, int, int, long, long, long, bool, bool)

What the advice depends on.

public AdviceInputs(ServerType Type, int SimulationDistance, int ViewDistance, long CeilingMb, long TotalRamMb, long AvailableRamMb, bool CanMeasure, bool SparkAvailable)

Parameters

Type ServerType

The server type.

SimulationDistance int

Its simulation-distance.

ViewDistance int

Its view-distance.

CeilingMb long

The heap ceiling it runs with, in MB.

TotalRamMb long

The machine's memory, 0 when unknown.

AvailableRamMb long

What the machine has free right now, 0 when unknown.

CanMeasure bool

The server can be asked for its speed (spark, tick query or Paper's tps).

SparkAvailable bool

spark is installed or comes with the server.

Properties

AvailableRamMb

What the machine has free right now, 0 when unknown.

public long AvailableRamMb { get; init; }

Property Value

long

CanMeasure

The server can be asked for its speed (spark, tick query or Paper's tps).

public bool CanMeasure { get; init; }

Property Value

bool

CeilingMb

The heap ceiling it runs with, in MB.

public long CeilingMb { get; init; }

Property Value

long

SimulationDistance

Its simulation-distance.

public int SimulationDistance { get; init; }

Property Value

int

SparkAvailable

spark is installed or comes with the server.

public bool SparkAvailable { get; init; }

Property Value

bool

TotalRamMb

The machine's memory, 0 when unknown.

public long TotalRamMb { get; init; }

Property Value

long

Type

The server type.

public ServerType Type { get; init; }

Property Value

ServerType

ViewDistance

Its view-distance.

public int ViewDistance { get; init; }

Property Value

int