Newer
Older
void-pack-super-server / work / decompile-ee3ecae0 / net / minecraft / server / SoundCategory.java
Simon Lindgren on 26 Mar 2020 671 bytes first commit
package net.minecraft.server;

import java.util.Arrays;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

public enum SoundCategory {

    MASTER("master"), MUSIC("music"), RECORDS("record"), WEATHER("weather"), BLOCKS("block"), HOSTILE("hostile"), NEUTRAL("neutral"), PLAYERS("player"), AMBIENT("ambient"), VOICE("voice");

    private static final Map<String, SoundCategory> k = (Map) Arrays.stream(values()).collect(Collectors.toMap(SoundCategory::a, Function.identity()));
    private final String l;

    private SoundCategory(String s) {
        this.l = s;
    }

    public String a() {
        return this.l;
    }
}