GlobalPos
class
Declaration
[ProtocolSupport(773, 776)]
public sealed class GlobalPos : IProtocolType<GlobalPos>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/GlobalPos.cs#L5 ↗ |
Implements: IProtocolType<GlobalPos>
Constructors
| Signature | Description |
|---|---|
GlobalPos(string dimensionName, Position location) | - |
GlobalPos(string, Position)
public GlobalPos(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 GlobalPos Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type GlobalPos from the specified reader. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static GlobalPos Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type GlobalPos from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)
Returns: GlobalPos - 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)