public static class DefaultAttributeContainer.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private Map<EntityAttribute,EntityAttributeInstance> |
instances |
private boolean |
unmodifiable |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultAttributeContainer.Builder |
add(EntityAttribute attribute) |
DefaultAttributeContainer.Builder |
add(EntityAttribute attribute,
double baseValue) |
DefaultAttributeContainer |
build() |
private EntityAttributeInstance |
checkedAdd(EntityAttribute attribute) |
private final Map<EntityAttribute,EntityAttributeInstance> instances
private boolean unmodifiable
private EntityAttributeInstance checkedAdd(EntityAttribute attribute)
public DefaultAttributeContainer.Builder add(EntityAttribute attribute)
public DefaultAttributeContainer.Builder add(EntityAttribute attribute, double baseValue)
public DefaultAttributeContainer build()