# ServerEntry
A `servers.<name>` block from config: the regex pattern, whether the pack is required, and the ordered pack name list.
---
## Source
```java
package gg.lode.paintingapi.api.model;
import org.jetbrains.annotations.NotNull;
import java.util.Collections;
import java.util.List;
import java.util.regex.Pattern;
public final class ServerEntry {
private final String name;
private final Pattern pattern;
private final boolean required;
private final List<String> packs;
public ServerEntry(@NotNull String name,
@NotNull Pattern pattern,
boolean required,
@NotNull List<String> packs) {
this.name = name;
this.pattern = pattern;
this.required = required;
this.packs = Collections.unmodifiableList(packs);
}
public @NotNull String name() { return name; }
public @NotNull Pattern pattern() { return pattern; }
public boolean required() { return required; }
public @NotNull List<String> packs() { return packs; }
public boolean matches(@NotNull String serverName) {
return pattern.matcher(serverName).matches();
}
}
```
---
## Related Pages
- [[Painting/API/IPaintingAPI]] — `getServerEntries()` returns these
- [[Painting/Server Owners/Configuration]] — config form