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/InvertedLootConditionintermediary net/minecraft/class_207official euznamed termintermediary comp_1873official b
-
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.MapCodec<InvertedLootCondition> private final LootConditionThe field for thetermrecord component.Fields inherited from interface net.minecraft.loot.condition.LootCondition
BASE_CODEC, ENTRY_CODEC -
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 named CODECLnet/minecraft/loot/condition/InvertedLootCondition;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_45865Lnet/minecraft/class_207;field_45865:Lcom/mojang/serialization/MapCodec;official aLeuz;a:Lcom/mojang/serialization/MapCodec;
-
-
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 named getTypeLnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;intermediary method_29325Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;official bLevc;b()Levd;
-
test
- Specified by:
testin interfacePredicate<LootContext>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/loot/condition/InvertedLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Zintermediary method_888Lnet/minecraft/class_207;method_888(Lnet/minecraft/class_47;)Zofficial aLeuz;a(Lerr;)Z
-
getRequiredParameters
- Specified by:
getRequiredParametersin interfaceLootContextAware- Mappings:
Namespace Name Mixin selector named getRequiredParametersLnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;intermediary method_293Lnet/minecraft/class_46;method_293()Ljava/util/Set;official aLers;a()Ljava/util/Set;
-
validate
- Specified by:
validatein interfaceLootContextAware- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)Vintermediary method_292Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)Vofficial aLers;a(Lerx;)V
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/loot/condition/InvertedLootCondition;builder(Lnet/minecraft/loot/condition/LootCondition$Builder;)Lnet/minecraft/loot/condition/LootCondition$Builder;intermediary method_889Lnet/minecraft/class_207;method_889(Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_5341$class_210;official aLeuz;a(Levc$a;)Levc$a;
-
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
-