MapColorData
class
Declaration
[ProtocolSupport(735, 777)]
public sealed class MapColorData : IProtocolType<MapColorData>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/MapColorData.cs#L6 ↗ |
Implements: IProtocolType<MapColorData>
Constructors
| Signature | Description |
|---|---|
MapColorData(int rows, int x, int y, byte[] data) | - |
MapColorData(int, int, int, byte[])
public MapColorData(int rows, int x, int y, byte[] data)
Parameters: rows (int), x (int), y (int), data (byte[])
Properties
| Signature | Description |
|---|---|
byte[] Data | - |
int Rows | - |
int X | - |
int Y | - |
Data
public byte[] Data { get; }
Returns: byte[]
Rows
public int Rows { get; }
Returns: int
X
public int X { get; }
Returns: int
Y
public int Y { get; }
Returns: int
Methods
| Signature | Description |
|---|---|
static MapColorData Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type MapColorData from the specified reader. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static MapColorData Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type MapColorData from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (int)
Returns: MapColorData - 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)