Record Class RecipeCraftedCriterion.Conditions
java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.RecipeCraftedCriterion.Conditions
- Record Components:
- player-
- recipeId-
- ingredients-
- All Implemented Interfaces:
- AbstractCriterion.Conditions,- CriterionConditions
- Enclosing class:
- RecipeCraftedCriterion
public static record RecipeCraftedCriterion.Conditions(Optional<LootContextPredicate> player, RegistryKey<Recipe<?>> recipeId, List<ItemPredicate> ingredients)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
- Namespace - Name - named - net/minecraft/advancement/criterion/RecipeCraftedCriterion$Conditions- intermediary - net/minecraft/class_8508$class_8509- official - dv$a- named - player- intermediary - comp_2029- official - b- named - recipeId- intermediary - comp_2087- official - c- named - ingredients- intermediary - comp_2088- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RecipeCraftedCriterion.Conditions> private final List<ItemPredicate> The field for theingredientsrecord component.private final Optional<LootContextPredicate> The field for theplayerrecord component.private final RegistryKey<Recipe<?>> The field for therecipeIdrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionConditions(Optional<LootContextPredicate> playerPredicate, RegistryKey<Recipe<?>> registryKey, List<ItemPredicate> ingredients) 
- 
Method SummaryModifier and TypeMethodDescriptioncreate(RegistryKey<Recipe<?>> recipeKey) create(RegistryKey<Recipe<?>> recipeKey, List<ItemPredicate.Builder> ingredients) createCrafterRecipeCrafted(RegistryKey<Recipe<?>> recipeKey) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theingredientsrecord component.(package private) booleanmatches(RegistryKey<Recipe<?>> recipeKey, List<ItemStack> ingredients) player()Returns the value of theplayerrecord component.RegistryKey<Recipe<?>> recipeId()Returns the value of therecipeIdrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.advancement.criterion.AbstractCriterion.Conditionsvalidate
- 
Field Details- 
playerThe field for theplayerrecord component.
- 
recipeIdThe field for therecipeIdrecord component.
- 
ingredientsThe field for theingredientsrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/advancement/criterion/RecipeCraftedCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_47327- Lnet/minecraft/class_8508$class_8509;field_47327:Lcom/mojang/serialization/Codec;- official - a- Ldv$a;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Conditionspublic Conditions(Optional<LootContextPredicate> playerPredicate, RegistryKey<Recipe<?>> registryKey, List<ItemPredicate> ingredients) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/advancement/criterion/RecipeCraftedCriterion$Conditions;<init>(Ljava/util/Optional;Lnet/minecraft/registry/RegistryKey;Ljava/util/List;)V- intermediary - <init>- Lnet/minecraft/class_8508$class_8509;<init>(Ljava/util/Optional;Lnet/minecraft/class_5321;Ljava/util/List;)V- official - <init>- Ldv$a;<init>(Ljava/util/Optional;Laku;Ljava/util/List;)V
 
 
- 
- 
Method Details- 
createpublic static AdvancementCriterion<RecipeCraftedCriterion.Conditions> create(RegistryKey<Recipe<?>> recipeKey, List<ItemPredicate.Builder> ingredients) - Mappings:
- Namespace - Name - Mixin selector - named - create- Lnet/minecraft/advancement/criterion/RecipeCraftedCriterion$Conditions;create(Lnet/minecraft/registry/RegistryKey;Ljava/util/List;)Lnet/minecraft/advancement/AdvancementCriterion;- intermediary - method_51353- Lnet/minecraft/class_8508$class_8509;method_51353(Lnet/minecraft/class_5321;Ljava/util/List;)Lnet/minecraft/class_175;- official - a- Ldv$a;a(Laku;Ljava/util/List;)Laq;
 
- 
createpublic static AdvancementCriterion<RecipeCraftedCriterion.Conditions> create(RegistryKey<Recipe<?>> recipeKey) - Mappings:
- Namespace - Name - Mixin selector - named - create- Lnet/minecraft/advancement/criterion/RecipeCraftedCriterion$Conditions;create(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/advancement/AdvancementCriterion;- intermediary - method_51352- Lnet/minecraft/class_8508$class_8509;method_51352(Lnet/minecraft/class_5321;)Lnet/minecraft/class_175;- official - a- Ldv$a;a(Laku;)Laq;
 
- 
createCrafterRecipeCraftedpublic static AdvancementCriterion<RecipeCraftedCriterion.Conditions> createCrafterRecipeCrafted(RegistryKey<Recipe<?>> recipeKey) - Mappings:
- Namespace - Name - Mixin selector - named - createCrafterRecipeCrafted- Lnet/minecraft/advancement/criterion/RecipeCraftedCriterion$Conditions;createCrafterRecipeCrafted(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/advancement/AdvancementCriterion;- intermediary - method_58450- Lnet/minecraft/class_8508$class_8509;method_58450(Lnet/minecraft/class_5321;)Lnet/minecraft/class_175;- official - b- Ldv$a;b(Laku;)Laq;
 
- 
matches- Mappings:
- Namespace - Name - Mixin selector - named - matches- Lnet/minecraft/advancement/criterion/RecipeCraftedCriterion$Conditions;matches(Lnet/minecraft/registry/RegistryKey;Ljava/util/List;)Z- intermediary - method_51354- Lnet/minecraft/class_8508$class_8509;method_51354(Lnet/minecraft/class_5321;Ljava/util/List;)Z- official - b- Ldv$a;b(Laku;Ljava/util/List;)Z
 
- 
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).
- 
playerReturns the value of theplayerrecord component.- Specified by:
- playerin interface- AbstractCriterion.Conditions
- Returns:
- the value of the playerrecord component
 
- 
recipeIdReturns the value of therecipeIdrecord component.- Returns:
- the value of the recipeIdrecord component
 
- 
ingredientsReturns the value of theingredientsrecord component.- Returns:
- the value of the ingredientsrecord component
 
 
-