Перейти к основному содержимому

DeathLocation

class

Declaration

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

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 (Int32)

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 (Int32)