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 efm
intermediary net/minecraft/class_207
named net/minecraft/loot/condition/InvertedLootCondition
official b
intermediary comp_1873
named term
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.loot.condition.LootCondition
LootCondition.Builder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<InvertedLootCondition>
private final LootCondition
The field for theterm
record component. -
Constructor Summary
ConstructorDescriptionCreates an instance of aInvertedLootCondition
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LootCondition.Builder
builder
(LootCondition.Builder term) final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.term()
Returns the value of theterm
record component.boolean
test
(LootContext lootContext) final String
toString()
Returns a string representation of this record class.void
validate
(LootTableReporter reporter)
-
Field Details
-
term
The field for theterm
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lefm;a:Lcom/mojang/serialization/Codec;
intermediary field_45865
Lnet/minecraft/class_207;field_45865:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/loot/condition/InvertedLootCondition;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
InvertedLootCondition
Creates an instance of aInvertedLootCondition
record class.- Parameters:
term
- the value for theterm
record component
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceLootCondition
- Mappings:
Namespace Name Mixin selector official b
Lefp;b()Lefq;
intermediary method_29325
Lnet/minecraft/class_5341;method_29325()Lnet/minecraft/class_5342;
named getType
Lnet/minecraft/loot/condition/LootCondition;getType()Lnet/minecraft/loot/condition/LootConditionType;
-
test
- Specified by:
test
in interfacePredicate<LootContext>
- Mappings:
Namespace Name Mixin selector official a
Lefm;a(Lecq;)Z
intermediary method_888
Lnet/minecraft/class_207;method_888(Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/loot/condition/InvertedLootCondition;test(Lnet/minecraft/loot/context/LootContext;)Z
-
getRequiredParameters
- Specified by:
getRequiredParameters
in interfaceLootContextAware
- Mappings:
Namespace Name Mixin selector official a
Lecr;a()Ljava/util/Set;
intermediary method_293
Lnet/minecraft/class_46;method_293()Ljava/util/Set;
named getRequiredParameters
Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
-
validate
- Specified by:
validate
in interfaceLootContextAware
- Mappings:
Namespace Name Mixin selector official a
Lecr;a(Lecz;)V
intermediary method_292
Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)V
named validate
Lnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
builder
- Mappings:
Namespace Name Mixin selector official a
Lefm;a(Lefp$a;)Lefp$a;
intermediary method_889
Lnet/minecraft/class_207;method_889(Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_5341$class_210;
named builder
Lnet/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 theterm
record component.- Returns:
- the value of the
term
record component
-