All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.whoisamyy.api.utils.enums.Shard Maven / Gradle / Ivy

There is a newer version: 0.0.4-release
Show newest version
package ru.whoisamyy.api.utils.enums;

public enum Shard {
    FIRE(0),
    ICE(1),
    POISON(2),
    SHADOW(3),
    LAVA(4);

    public final int val;
    Shard(int val) {
        this.val = val;
    }

    public static Shard intToShard(int val) {
        switch (val) {
            case 0 -> {return FIRE;}
            case 1 -> {return ICE;}
            case 2 -> {return POISON;}
            case 3 -> {return SHADOW;}
            case 4 -> {return LAVA;}
        }
        return FIRE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy