Skip to main content

Vec3i

struct

Declaration

[ProtocolSupport(770, 776)]
public readonly record struct Vec3i : IProtocolType<Vec3i>
NamespaceMcProtoNet.Protocol
AssemblyMcProtoNet.Protocol.dll
Sourcesrc/McProtoNet.Protocol/Generated/Types/Vec3i.cs#L5 ↗

Implements: IProtocolType<Vec3i>

Constructors

SignatureDescription
Vec3i(int X, int Y, int Z)-

Vec3i(int, int, int)

public Vec3i(int X, int Y, int Z)

Parameters: X (Int32), Y (Int32), Z (Int32)

Properties

SignatureDescription
int X-
int Y-
int Z-

X

public int X { get; init; }

Returns: Int32

Y

public int Y { get; init; }

Returns: Int32

Z

public int Z { get; init; }

Returns: Int32

Methods

SignatureDescription
static Vec3i Read(ref MinecraftPrimitiveReader reader, int protocolVersion)Reads a value of type Vec3i from the specified reader.
void Write(MinecraftPrimitiveWriter writer, int protocolVersion)Writes the current value to the specified writer.

Read(ref MinecraftPrimitiveReader, int)

public static Vec3i Read(ref MinecraftPrimitiveReader reader, int protocolVersion)

Reads a value of type Vec3i from the specified reader.

Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)

Returns: Vec3i - 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 (Int32)