Package net.minecraft.loot.conditions
Class LootConditionManager
- java.lang.Object
-
- net.minecraft.loot.conditions.LootConditionManager
-
public class LootConditionManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static LootConditionType
ALTERNATIVE
static LootConditionType
BLOCK_STATE_PROPERTY
static LootConditionType
DAMAGE_SOURCE_PROPERTIES
static LootConditionType
ENTITY_PROPERTIES
static LootConditionType
ENTITY_SCORES
static LootConditionType
INVERTED
static LootConditionType
KILLED_BY_PLAYER
static LootConditionType
LOCATION_CHECK
static LootConditionType
MATCH_TOOL
static LootConditionType
RANDOM_CHANCE
static LootConditionType
RANDOM_CHANCE_WITH_LOOTING
static LootConditionType
REFERENCE
static LootConditionType
SURVIVES_EXPLOSION
static LootConditionType
TABLE_BONUS
static LootConditionType
TIME_CHECK
static LootConditionType
WEATHER_CHECK
-
Constructor Summary
Constructors Constructor Description LootConditionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.function.Predicate<T>
andConditions(java.util.function.Predicate<T>[] p_216305_0_)
static java.lang.Object
createGsonAdapter()
static <T> java.util.function.Predicate<T>
orConditions(java.util.function.Predicate<T>[] p_216306_0_)
private static LootConditionType
register(java.lang.String p_237475_0_, ILootSerializer<? extends ILootCondition> p_237475_1_)
-
-
-
Field Detail
-
INVERTED
public static final LootConditionType INVERTED
-
ALTERNATIVE
public static final LootConditionType ALTERNATIVE
-
RANDOM_CHANCE
public static final LootConditionType RANDOM_CHANCE
-
RANDOM_CHANCE_WITH_LOOTING
public static final LootConditionType RANDOM_CHANCE_WITH_LOOTING
-
ENTITY_PROPERTIES
public static final LootConditionType ENTITY_PROPERTIES
-
KILLED_BY_PLAYER
public static final LootConditionType KILLED_BY_PLAYER
-
ENTITY_SCORES
public static final LootConditionType ENTITY_SCORES
-
BLOCK_STATE_PROPERTY
public static final LootConditionType BLOCK_STATE_PROPERTY
-
MATCH_TOOL
public static final LootConditionType MATCH_TOOL
-
TABLE_BONUS
public static final LootConditionType TABLE_BONUS
-
SURVIVES_EXPLOSION
public static final LootConditionType SURVIVES_EXPLOSION
-
DAMAGE_SOURCE_PROPERTIES
public static final LootConditionType DAMAGE_SOURCE_PROPERTIES
-
LOCATION_CHECK
public static final LootConditionType LOCATION_CHECK
-
WEATHER_CHECK
public static final LootConditionType WEATHER_CHECK
-
REFERENCE
public static final LootConditionType REFERENCE
-
TIME_CHECK
public static final LootConditionType TIME_CHECK
-
-
Method Detail
-
register
private static LootConditionType register(java.lang.String p_237475_0_, ILootSerializer<? extends ILootCondition> p_237475_1_)
-
createGsonAdapter
public static java.lang.Object createGsonAdapter()
-
andConditions
public static <T> java.util.function.Predicate<T> andConditions(java.util.function.Predicate<T>[] p_216305_0_)
-
orConditions
public static <T> java.util.function.Predicate<T> orConditions(java.util.function.Predicate<T>[] p_216306_0_)
-
-