public class LootConditionManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LootConditionManager.Serializer |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class<? extends ILootCondition>,ILootCondition.AbstractSerializer<?>> |
BY_CLASS |
private static java.util.Map<ResourceLocation,ILootCondition.AbstractSerializer<?>> |
BY_NAME |
Constructor and Description |
---|
LootConditionManager() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.function.Predicate<T> |
and(java.util.function.Predicate<T>[] p_216305_0_) |
static <T extends ILootCondition> |
getSerializerFor(T conditionClass) |
static ILootCondition.AbstractSerializer<?> |
getSerializerForName(ResourceLocation location) |
static <T> java.util.function.Predicate<T> |
or(java.util.function.Predicate<T>[] p_216306_0_) |
static <T extends ILootCondition> |
registerCondition(ILootCondition.AbstractSerializer<? extends T> condition) |
private static final java.util.Map<ResourceLocation,ILootCondition.AbstractSerializer<?>> BY_NAME
private static final java.util.Map<java.lang.Class<? extends ILootCondition>,ILootCondition.AbstractSerializer<?>> BY_CLASS
public static <T extends ILootCondition> void registerCondition(ILootCondition.AbstractSerializer<? extends T> condition)
public static ILootCondition.AbstractSerializer<?> getSerializerForName(ResourceLocation location)
public static <T extends ILootCondition> ILootCondition.AbstractSerializer<T> getSerializerFor(T conditionClass)
public static <T> java.util.function.Predicate<T> and(java.util.function.Predicate<T>[] p_216305_0_)
public static <T> java.util.function.Predicate<T> or(java.util.function.Predicate<T>[] p_216306_0_)