Package net.minecraft.loot.condition
Record Class InvertedLootCondition
java.lang.Object
java.lang.Record
net.minecraft.loot.condition.InvertedLootCondition
- Record Components:
- term-
- All Implemented Interfaces:
- Predicate<LootContext>,- LootCondition,- LootContextAware
- Mappings:
- Namespace - Name - named - net/minecraft/loot/condition/InvertedLootCondition- intermediary - net/minecraft/class_207- official - fdz- named - term- intermediary - comp_1873- official - b
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.loot.condition.LootConditionLootCondition.Builder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<InvertedLootCondition> private final LootConditionThe field for thetermrecord component.Fields inherited from interface net.minecraft.loot.condition.LootConditionBASE_CODEC, ENTRY_CODEC
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aInvertedLootConditionrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionstatic LootCondition.Builderbuilder(LootCondition.Builder term) final booleanIndicates whether some other object is "equal to" this one.Set<ContextParameter<?>> getType()final inthashCode()Returns a hash code value for this object.term()Returns the value of thetermrecord component.booleantest(LootContext lootContext) final StringtoString()Returns a string representation of this record class.voidvalidate(LootTableReporter reporter) 
- 
Field Details- 
termThe field for thetermrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/condition/InvertedLootCondition;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_45865- Lnet/minecraft/class_207;field_45865:Lcom/mojang/serialization/MapCodec;- official - a- Lfdz;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
InvertedLootConditionCreates an instance of aInvertedLootConditionrecord class.- Parameters:
- term- the value for the- termrecord component
 
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- LootCondition
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;- intermediary - method_29325- Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;- official - b- Lfec;b()Lfed;
 
- 
test- Specified by:
- testin interface- Predicate<LootContext>
- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/loot/condition/InvertedLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z- intermediary - method_888- Lnet/minecraft/class_207;method_888(Lnet/minecraft/class_47;)Z- official - a- Lfdz;a(Lfat;)Z
 
- 
getAllowedParameters- Specified by:
- getAllowedParametersin interface- LootContextAware
- Mappings:
- Namespace - Name - Mixin selector - named - getAllowedParameters- Lnet/minecraft/loot/context/LootContextAware;getAllowedParameters()Ljava/util/Set;- intermediary - method_293- Lnet/minecraft/class_46;method_293()Ljava/util/Set;- official - a- Lfau;a()Ljava/util/Set;
 
- 
validate- Specified by:
- validatein interface- LootContextAware
- Mappings:
- Namespace - Name - Mixin selector - named - validate- Lnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V- intermediary - method_292- Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)V- official - a- Lfau;a(Lfaz;)V
 
- 
builder- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/loot/condition/InvertedLootCondition;builder(Lnet/minecraft/loot/condition/LootCondition$Builder;)Lnet/minecraft/loot/condition/LootCondition$Builder;- intermediary - method_889- Lnet/minecraft/class_207;method_889(Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_5341$class_210;- official - a- Lfdz;a(Lfec$a;)Lfec$a;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
termReturns the value of thetermrecord component.- Returns:
- the value of the termrecord component
 
 
-