AttributeModifier
class
Declaration
[ProtocolSupport(735, 777)]
public sealed class AttributeModifier : IProtocolType<AttributeModifier>
| Namespace | McProtoNet.Protocol |
| Assembly | McProtoNet.Protocol.dll |
| Source | src/McProtoNet.Protocol/Generated/Types/AttributeModifier.cs#L7 ↗ |
Implements: IProtocolType<AttributeModifier>
Constructors
| Signature | Description |
|---|---|
AttributeModifier(Guid uuid, string id, double amount, int operation) | - |
AttributeModifier(Guid, string, double, int)
public AttributeModifier(Guid uuid, string id, double amount, int operation)
Parameters: uuid (Guid), id (string), amount (double), operation (int)
Properties
| Signature | Description |
|---|---|
double Amount | - |
string Id | - |
int Operation | - |
Guid Uuid | - |
Amount
public double Amount { get; }
Returns: double
Id
public string Id { get; }
Returns: string
Operation
public int Operation { get; }
Returns: int
Uuid
public Guid Uuid { get; }
Returns: Guid
Methods
| Signature | Description |
|---|---|
static AttributeModifier Read(ref MinecraftPrimitiveReader reader, int protocolVersion) | Reads a value of type AttributeModifier from the specified reader. |
void Write(MinecraftPrimitiveWriter writer, int protocolVersion) | Writes the current value to the specified writer. |
Read(ref MinecraftPrimitiveReader, int)
public static AttributeModifier Read(ref MinecraftPrimitiveReader reader, int protocolVersion)
Reads a value of type AttributeModifier from the specified reader.
Parameters: reader (MinecraftPrimitiveReader), protocolVersion (int)
Returns: AttributeModifier - 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)