public class LootFunctionManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LootFunctionManager.Serializer |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<? extends LootFunction>,LootFunction.Serializer<?>> |
CLASS_TO_SERIALIZER_MAP |
private static java.util.Map<ResourceLocation,LootFunction.Serializer<?>> |
NAME_TO_SERIALIZER_MAP |
Constructor and Description |
---|
LootFunctionManager() |
Modifier and Type | Method and Description |
---|---|
static <T extends LootFunction> |
getSerializerFor(T functionClass) |
static LootFunction.Serializer<?> |
getSerializerForName(ResourceLocation location) |
static <T extends LootFunction> |
registerFunction(LootFunction.Serializer<? extends T> serializer) |
private static final java.util.Map<ResourceLocation,LootFunction.Serializer<?>> NAME_TO_SERIALIZER_MAP
private static final java.util.Map<java.lang.Class<? extends LootFunction>,LootFunction.Serializer<?>> CLASS_TO_SERIALIZER_MAP
public static <T extends LootFunction> void registerFunction(LootFunction.Serializer<? extends T> serializer)
public static LootFunction.Serializer<?> getSerializerForName(ResourceLocation location)
public static <T extends LootFunction> LootFunction.Serializer<T> getSerializerFor(T functionClass)