public static class WrappedAttribute.Builder extends Object
Use WrappedAttribute.newBuilder() to construct it.
| Modifier and Type | Method and Description |
|---|---|
WrappedAttribute.Builder |
attributeKey(String attributeKey)
Set the unique attribute key that identifies its function.
|
WrappedAttribute.Builder |
baseValue(double baseValue)
Change the base value of the attribute.
|
WrappedAttribute |
build()
Build a new wrapped attribute with the values of this builder.
|
WrappedAttribute.Builder |
modifiers(Collection<WrappedAttributeModifier> modifiers)
Set the modifers that will be supplied to the client, and used to compute the final value.
|
WrappedAttribute.Builder |
packet(PacketContainer packet)
Set the parent update attributes packet (44).
|
public WrappedAttribute.Builder baseValue(double baseValue)
The modifiers will automatically supply a value if this is unset.
baseValue - - the base value value.public WrappedAttribute.Builder attributeKey(String attributeKey)
This is required.
attributeKey - - the unique attribute key.public WrappedAttribute.Builder modifiers(Collection<WrappedAttributeModifier> modifiers)
modifiers - - the attribute modifiers.public WrappedAttribute.Builder packet(PacketContainer packet)
packet - - the parent packet.public WrappedAttribute build()
RuntimeException - If anything went wrong with the reflection.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.