Skip to main content

DeathLocation

class

Declaration​

[ProtocolSupport(759, 777)]
public sealed class DeathLocation : IProtocolType<DeathLocation>
NamespaceMcProtoNet.Protocol
AssemblyMcProtoNet.Protocol.dll
Sourcesrc/McProtoNet.Protocol/Generated/Types/DeathLocation.cs#L6 ↗

Implements: IProtocolType<DeathLocation>

Constructors​

SignatureDescription
DeathLocation(string dimensionName, Position location)-

DeathLocation(string, Position)​

public DeathLocation(string dimensionName, Position location)

Parameters: dimensionName (string), location (Position)

Properties​

SignatureDescription
string DimensionName-
Position Location-

DimensionName​

public string DimensionName { get; }

Returns: string

Location​

public Position Location { get; }

Returns: Position

Methods​

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

Read(ref MinecraftPrimitiveReader, int)​

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

Reads a value of type DeathLocation from the specified reader.

Parameters: reader (MinecraftPrimitiveReader), protocolVersion (int)

Returns: DeathLocation - 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)