Commits
md_5 authored b2e0ded3ded
25 25 | public AttributeModifier( String name, double amount, Operation operation) { |
26 26 | this(UUID.randomUUID(), name, amount, operation); |
27 27 | } |
28 28 | |
29 29 | public AttributeModifier( UUID uuid, String name, double amount, Operation operation) { |
30 30 | this(uuid, name, amount, operation, null); |
31 31 | } |
32 32 | |
33 33 | public AttributeModifier( UUID uuid, String name, double amount, Operation operation, EquipmentSlot slot) { |
34 34 | Validate.notNull(uuid, "UUID cannot be null"); |
35 - | Validate.notEmpty(name, "Name cannot be empty"); |
35 + | Validate.notNull(name, "Name cannot be null"); |
36 36 | Validate.notNull(operation, "Operation cannot be null"); |
37 37 | this.uuid = uuid; |
38 38 | this.name = name; |
39 39 | this.amount = amount; |
40 40 | this.operation = operation; |
41 41 | this.slot = slot; |
42 42 | } |
43 43 | |
44 44 | /** |
45 45 | * Get the unique ID for this modifier. |