/* * Decompiled with CFR 0.152. */ package net.minecraft.network.protocol.handshake; public enum ClientIntent { STATUS, LOGIN, TRANSFER; private static final int STATUS_ID = 1; private static final int LOGIN_ID = 2; private static final int TRANSFER_ID = 3; public static ClientIntent byId(int id) { return switch (id) { case 1 -> STATUS; case 2 -> LOGIN; case 3 -> TRANSFER; default -> throw new IllegalArgumentException("Unknown connection intent: " + id); }; } public int id() { return switch (this.ordinal()) { default -> throw new MatchException(null, null); case 0 -> 1; case 1 -> 2; case 2 -> 3; }; } }