WaypointColor
struct
Declaration
[ProtocolSupport(771, 777)]
public readonly record struct WaypointColor : IProtocolType<WaypointColor>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/WaypointColor.cs#L6 ↗ |
Implements: IProtocolType<WaypointColor>
Constructors
| Signature | Description |
|---|---|
WaypointColor(int Red, int Green, int Blue) | - |
WaypointColor(int, int, int)
public WaypointColor(int Red, int Green, int Blue)
Parameters: Red (int), Green (int), Blue (int)
Properties
| Signature | Description |
|---|---|
int Blue | - |
int Green | - |
int Red | - |
Blue
public int Blue { get; init; }
Returns: int
Green
public int Green { get; init; }
Returns: int
Red
public int Red { get; init; }
Returns: int
Methods
| Signature | Description |
|---|---|
static WaypointColor Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type WaypointColor from the specified reader. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static WaypointColor Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type WaypointColor from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (int)
Returns: WaypointColor - The value that was read.
Write(MinecraftPrimitiveWriter, int)
public void Write(MinecraftPrimitiveWriter writer, int protocolVersion)
Writes the current value to the specified writer.
Parameters: writer (MinecraftPrimitiveWriter), protocolVersion (int)