Skip to content

Class VarLongProperty

Namespace: Void.Minecraft.Network.Registries.Transformations.Properties
Assembly: Void.Minecraft.dll

public record VarLongProperty : IPacketProperty<VarLongProperty>, IPacketProperty, IEquatable<VarLongProperty>

Inheritance

objectVarLongProperty

Implements

IPacketProperty<VarLongProperty>, IPacketProperty, IEquatable<VarLongProperty>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

VarLongProperty(ReadOnlyMemory<byte>)

public VarLongProperty(ReadOnlyMemory<byte> Value)

Parameters

Value ReadOnlyMemory<byte>

Properties

AsPrimitive

public long AsPrimitive { get; }

Property Value

long

Value

public ReadOnlyMemory<byte> Value { get; init; }

Property Value

ReadOnlyMemory<byte>

Methods

FromPrimitive(long)

public static VarLongProperty FromPrimitive(long value)

Parameters

value long

Returns

VarLongProperty

Read(ref MinecraftBuffer)

public static VarLongProperty Read(ref MinecraftBuffer buffer)

Parameters

buffer MinecraftBuffer

Returns

VarLongProperty

Write(ref MinecraftBuffer)

public void Write(ref MinecraftBuffer buffer)

Parameters

buffer MinecraftBuffer