public static class WrappedAttribute.Builder
extends java.lang.Object
Use WrappedAttribute.newBuilder()
to construct it.
Modifier and Type | Method and Description |
---|---|
WrappedAttribute.Builder |
attributeKey(java.lang.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(java.util.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(java.lang.String attributeKey)
This is required.
attributeKey
- - the unique attribute key.public WrappedAttribute.Builder modifiers(java.util.Collection<WrappedAttributeModifier> modifiers)
modifiers
- - the attribute modifiers.public WrappedAttribute.Builder packet(PacketContainer packet)
packet
- - the parent packet.public WrappedAttribute build()
java.lang.RuntimeException
- If anything went wrong with the reflection.