Specify the type of the firework effect. @param type The effect type @return This object, for chaining @throws IllegalArgumentException If type is null
(@NotNull Type type)
| 74 | * @throws IllegalArgumentException If type is null |
| 75 | */ |
| 76 | @NotNull |
| 77 | public Builder with(@NotNull Type type) throws IllegalArgumentException { |
| 78 | Validate.notNull(type, "Cannot have null type"); |
| 79 | this.type = type; |
| 80 | return this; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Add a flicker to the firework effect. |
no outgoing calls
no test coverage detected