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 official ejsintermediary net/minecraft/class_207named net/minecraft/loot/condition/InvertedLootConditionofficial bintermediary comp_1873named term
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.loot.condition.LootCondition
LootCondition.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<InvertedLootCondition>private final LootConditionThe field for thetermrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aInvertedLootConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LootCondition.Builderbuilder(LootCondition.Builder term) final booleanIndicates whether some other object is "equal to" this one.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
-
term
The field for thetermrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLejs;a:Lcom/mojang/serialization/Codec;intermediary field_45865Lnet/minecraft/class_207;field_45865:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/loot/condition/InvertedLootCondition;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
InvertedLootCondition
Creates an instance of aInvertedLootConditionrecord class.- Parameters:
term- the value for thetermrecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootCondition- Mappings:
Namespace Name Mixin selector official bLejv;b()Lejw;intermediary method_29325Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;named getTypeLnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;
-
test
- Specified by:
testin interfacePredicate<LootContext>- Mappings:
Namespace Name Mixin selector official aLejs;a(Legw;)Zintermediary method_888Lnet/minecraft/class_207;method_888(Lnet/minecraft/class_47;)Znamed testLnet/minecraft/loot/condition/InvertedLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootContextAware- Mappings:
Namespace Name Mixin selector official aLegx;a()Ljava/util/Set;intermediary method_293Lnet/minecraft/class_46;method_293()Ljava/util/Set;named getRequiredParametersLnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
-
validate
- Specified by:
validatein interfaceLootContextAware- Mappings:
Namespace Name Mixin selector official aLegx;a(Lehf;)Vintermediary method_292Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)Vnamed validateLnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
builder
- Mappings:
Namespace Name Mixin selector official aLejs;a(Lejv$a;)Lejv$a;intermediary method_889Lnet/minecraft/class_207;method_889(Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_5341$class_210;named builderLnet/minecraft/loot/condition/InvertedLootCondition;builder(Lnet/minecraft/loot/condition/LootCondition$Builder;)Lnet/minecraft/loot/condition/LootCondition$Builder;
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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). -
term
Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-