Skip to main content

AttributeModifier

class

Declaration​

[ProtocolSupport(735, 777)]
public sealed class AttributeModifier : IProtocolType<AttributeModifier>
NamespaceMcProtoNet.Protocol
AssemblyMcProtoNet.Protocol.dll
Sourcesrc/McProtoNet.Protocol/Generated/Types/AttributeModifier.cs#L7 ↗

Implements: IProtocolType<AttributeModifier>

Constructors​

SignatureDescription
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​

SignatureDescription
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​

SignatureDescription
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)