Package net.minecraft.loot.conditions
Class Inverted
- java.lang.Object
-
- net.minecraft.loot.conditions.Inverted
-
- All Implemented Interfaces:
java.util.function.Predicate<LootContext>
,ILootCondition
,IParameterized
public class Inverted extends java.lang.Object implements ILootCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Inverted.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private ILootCondition
term
-
Constructor Summary
Constructors Modifier Constructor Description private
Inverted(ILootCondition p_i51202_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<LootParameter<?>>
getReferencedContextParams()
LootConditionType
getType()
static ILootCondition.IBuilder
invert(ILootCondition.IBuilder p_215979_0_)
boolean
test(LootContext p_test_1_)
void
validate(ValidationTracker p_225580_1_)
-
-
-
Field Detail
-
term
private final ILootCondition term
-
-
Constructor Detail
-
Inverted
private Inverted(ILootCondition p_i51202_1_)
-
-
Method Detail
-
getType
public LootConditionType getType()
- Specified by:
getType
in interfaceILootCondition
-
test
public final boolean test(LootContext p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<LootContext>
-
getReferencedContextParams
public java.util.Set<LootParameter<?>> getReferencedContextParams()
- Specified by:
getReferencedContextParams
in interfaceIParameterized
-
validate
public void validate(ValidationTracker p_225580_1_)
- Specified by:
validate
in interfaceIParameterized
-
invert
public static ILootCondition.IBuilder invert(ILootCondition.IBuilder p_215979_0_)
-
-