package client.teavm.common.autoplay; import ui.entities.statistics.EventType; public enum DiskEventType { START, CHANGE; public static DiskEventType from(EventType eventType) { return switch (eventType) { case START -> START; case CHANGE -> CHANGE; default -> throw new IllegalArgumentException("Not a disk event: " + eventType); }; } public EventType toEventType() { return EventType.valueOf(this.name()); } }