public class LootConditionManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LootConditionManager.Serializer |
Constructor and Description |
---|
LootConditionManager() |
Modifier and Type | Method and Description |
---|---|
static <T extends LootCondition> |
getSerializerFor(T conditionClass) |
static LootCondition.Serializer<?> |
getSerializerForName(ResourceLocation location) |
static <T extends LootCondition> |
registerCondition(LootCondition.Serializer<? extends T> condition) |
static boolean |
testAllConditions(java.lang.Iterable<LootCondition> conditions,
java.util.Random rand,
LootContext context) |
static boolean |
testAllConditions(LootCondition[] conditions,
java.util.Random rand,
LootContext context) |
public static <T extends LootCondition> void registerCondition(LootCondition.Serializer<? extends T> condition)
public static boolean testAllConditions(java.lang.Iterable<LootCondition> conditions, java.util.Random rand, LootContext context)
public static boolean testAllConditions(@Nullable LootCondition[] conditions, java.util.Random rand, LootContext context)
public static LootCondition.Serializer<?> getSerializerForName(ResourceLocation location)
public static <T extends LootCondition> LootCondition.Serializer<T> getSerializerFor(T conditionClass)