VillagerData
struct
Declaration
[ProtocolSupport(735, 776)]
public readonly record struct VillagerData : IProtocolType<VillagerData>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/VillagerData.cs#L5 ↗ |
Implements: IProtocolType<VillagerData>
Constructors
| Signature | Description |
|---|---|
VillagerData(int Type, int Profession, int Level) | - |
VillagerData(int, int, int)
public VillagerData(int Type, int Profession, int Level)
Parameters: Type (Int32), Profession (Int32), Level (Int32)
Properties
| Signature | Description |
|---|---|
int Level | - |
int Profession | - |
int Type | - |
Level
public int Level { get; init; }
Returns: Int32
Profession
public int Profession { get; init; }
Returns: Int32
Type
public int Type { get; init; }
Returns: Int32
Methods
| Signature | Description |
|---|---|
static VillagerData Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type VillagerData from the specified reader. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static VillagerData Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type VillagerData from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (Int32)
Returns: VillagerData - 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)