Alles, was Claude Kot vergessen hat

This commit is contained in:
2026-09-01 22:06:02 +02:00
parent 2fd6a9b737
commit 43829a42f3
35 changed files with 222 additions and 17 deletions

View File

@@ -0,0 +1,23 @@
package de.blight.common;
public enum ModelCategory {
NONE("Keines"),
TREE("Baum"),
PALM("Palme"),
BUILDING("Gebäude"),
BUSH("Busch");
private final String label;
ModelCategory(String label) {
this.label = label;
}
public String getLabel() { return label; }
public static ModelCategory fromString(String s) {
if (s == null || s.isBlank()) return NONE;
try { return valueOf(s); }
catch (IllegalArgumentException e) { return NONE; }
}
}