summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ProtocolOrdinalWrapper.java
blob: d6e7f3620d8e29fb1653768421ae760e524f02b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package net.minecraft.server;

// CraftBukkit - import package private class
class ProtocolOrdinalWrapper {

    static final int[] a = new int[EnumProtocol.values().length];

    static {
        try {
            a[EnumProtocol.LOGIN.ordinal()] = 1;
        } catch (NoSuchFieldError nosuchfielderror) {
            ;
        }

        try {
            a[EnumProtocol.STATUS.ordinal()] = 2;
        } catch (NoSuchFieldError nosuchfielderror1) {
            ;
        }
    }
}