DeathLocation
class
Declaration
[ProtocolSupport(759, 776)]
public sealed class DeathLocation : IProtocolType<DeathLocation>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/DeathLocation.cs#L5 ↗ |
Implements: IProtocolType<DeathLocation>
Constructors
| Signature | Description |
|---|---|
DeathLocation(string dimensionName, Position location) | - |
DeathLocation(string, Position)
public DeathLocation(string dimensionName, Position location)
Parameters: dimensionName (String), location (Position)
Properties
| Signature | Description |
|---|---|
string DimensionName | - |
Position Location | - |
DimensionName
public string DimensionName { get; }
Returns: String
Location
public Position Location { get; }
Returns: Position
Methods
| Signature | Description |
|---|---|
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)