Package net.minecraft.recipe
Record Class Ingredient.TagEntry
java.lang.Object
java.lang.Record
net.minecraft.recipe.Ingredient.TagEntry
- Record Components:
tag-
- All Implemented Interfaces:
Ingredient.Entry
- Enclosing class:
Ingredient
private static record Ingredient.TagEntry(TagKey<Item> tag)
extends Record
implements Ingredient.Entry
- Mappings:
Namespace Name official cpz$bintermediary net/minecraft/class_1856$class_1858named net/minecraft/recipe/Ingredient$TagEntryofficial bintermediary comp_1931named tag
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
tag
The field for thetagrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official cLcpz$b;c:Lcom/mojang/serialization/Codec;intermediary field_46098Lnet/minecraft/class_1856$class_1858;field_46098:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/recipe/Ingredient$TagEntry;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TagEntry
Creates an instance of aTagEntryrecord class.- Parameters:
tag- the value for thetagrecord component
-
-
Method Details
-
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). -
getStacks
- Specified by:
getStacksin interfaceIngredient.Entry- Mappings:
Namespace Name Mixin selector official aLcpz$c;a()Ljava/util/Collection;intermediary method_8108Lnet/minecraft/class_1856$class_1859;method_8108()Ljava/util/Collection;named getStacksLnet/minecraft/recipe/Ingredient$Entry;getStacks()Ljava/util/Collection;
-
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. -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-