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 ILootFunction>,ILootFunction.Serializer<?>> |
CLASS_TO_SERIALIZER_MAP |
static java.util.function.BiFunction<ItemStack,LootContext,ItemStack> |
IDENTITY |
private static java.util.Map<ResourceLocation,ILootFunction.Serializer<?>> |
NAME_TO_SERIALIZER_MAP |
Constructor and Description |
---|
LootFunctionManager() |
Modifier and Type | Method and Description |
---|---|
static java.util.function.BiFunction<ItemStack,LootContext,ItemStack> |
combine(java.util.function.BiFunction<ItemStack,LootContext,ItemStack>[] p_216241_0_) |
static <T extends ILootFunction> |
getSerializerFor(T functionClass) |
static ILootFunction.Serializer<?> |
getSerializerForName(ResourceLocation location) |
static <T extends ILootFunction> |
registerFunction(ILootFunction.Serializer<? extends T> serializer) |
private static final java.util.Map<ResourceLocation,ILootFunction.Serializer<?>> NAME_TO_SERIALIZER_MAP
private static final java.util.Map<java.lang.Class<? extends ILootFunction>,ILootFunction.Serializer<?>> CLASS_TO_SERIALIZER_MAP
public static final java.util.function.BiFunction<ItemStack,LootContext,ItemStack> IDENTITY
public static <T extends ILootFunction> void registerFunction(ILootFunction.Serializer<? extends T> serializer)
public static ILootFunction.Serializer<?> getSerializerForName(ResourceLocation location)
public static <T extends ILootFunction> ILootFunction.Serializer<T> getSerializerFor(T functionClass)
public static java.util.function.BiFunction<ItemStack,LootContext,ItemStack> combine(java.util.function.BiFunction<ItemStack,LootContext,ItemStack>[] p_216241_0_)