Package net.minecraft.recipe
Record Class TransmuteRecipeResult
java.lang.Object
java.lang.Record
net.minecraft.recipe.TransmuteRecipeResult
- Record Components:
itemEntry-count-components-
public record TransmuteRecipeResult(RegistryEntry<Item> itemEntry, int count, ComponentChanges components)
extends Record
- Mappings:
Namespace Name named net/minecraft/recipe/TransmuteRecipeResultintermediary net/minecraft/class_10591official dqhnamed itemEntryintermediary comp_3483official cnamed countintermediary comp_3484official dnamed componentsintermediary comp_3485official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<TransmuteRecipeResult> static final com.mojang.serialization.Codec<TransmuteRecipeResult> private final ComponentChangesThe field for thecomponentsrecord component.private final intThe field for thecountrecord component.private final RegistryEntry<Item> The field for theitemEntryrecord component.static final PacketCodec<RegistryByteBuf, TransmuteRecipeResult> -
Constructor Summary
ConstructorsConstructorDescriptionTransmuteRecipeResult(Item item) TransmuteRecipeResult(RegistryEntry<Item> itemEntry, int count, ComponentChanges components) Creates an instance of aTransmuteRecipeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.intcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEqualToResult(ItemStack stack) Returns the value of theitemEntryrecord component.final StringtoString()Returns a string representation of this record class.private static com.mojang.serialization.DataResult<TransmuteRecipeResult> validate(TransmuteRecipeResult result)
-
Field Details
-
itemEntry
The field for theitemEntryrecord component. -
count
private final int countThe field for thecountrecord component. -
components
The field for thecomponentsrecord component. -
BASE_CODEC
- Mappings:
Namespace Name Mixin selector named BASE_CODECLnet/minecraft/recipe/TransmuteRecipeResult;BASE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_55716Lnet/minecraft/class_10591;field_55716:Lcom/mojang/serialization/Codec;official fLdqh;f:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/recipe/TransmuteRecipeResult;CODEC:Lcom/mojang/serialization/Codec;intermediary field_55714Lnet/minecraft/class_10591;field_55714:Lcom/mojang/serialization/Codec;official aLdqh;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/recipe/TransmuteRecipeResult;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_55715Lnet/minecraft/class_10591;field_55715:Lnet/minecraft/class_9139;official bLdqh;b:Laat;
-
-
Constructor Details
-
TransmuteRecipeResult
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/recipe/TransmuteRecipeResult;<init>(Lnet/minecraft/item/Item;)Vintermediary <init>Lnet/minecraft/class_10591;<init>(Lnet/minecraft/class_1792;)Vofficial <init>Ldqh;<init>(Ldkc;)V
-
TransmuteRecipeResult
Creates an instance of aTransmuteRecipeResultrecord class.- Parameters:
itemEntry- the value for theitemEntryrecord componentcount- the value for thecountrecord componentcomponents- the value for thecomponentsrecord component
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<TransmuteRecipeResult> validate(TransmuteRecipeResult result) - Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/recipe/TransmuteRecipeResult;validate(Lnet/minecraft/recipe/TransmuteRecipeResult;)Lcom/mojang/serialization/DataResult;intermediary method_66341Lnet/minecraft/class_10591;method_66341(Lnet/minecraft/class_10591;)Lcom/mojang/serialization/DataResult;official aLdqh;a(Ldqh;)Lcom/mojang/serialization/DataResult;
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/recipe/TransmuteRecipeResult;apply(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;intermediary method_66340Lnet/minecraft/class_10591;method_66340(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;official aLdqh;a(Ldkg;)Ldkg;
-
isEqualToResult
- Mappings:
Namespace Name Mixin selector named isEqualToResultLnet/minecraft/recipe/TransmuteRecipeResult;isEqualToResult(Lnet/minecraft/item/ItemStack;)Zintermediary method_67389Lnet/minecraft/class_10591;method_67389(Lnet/minecraft/class_1799;)Zofficial bLdqh;b(Ldkg;)Z
-
createSlotDisplay
- Mappings:
Namespace Name Mixin selector named createSlotDisplayLnet/minecraft/recipe/TransmuteRecipeResult;createSlotDisplay()Lnet/minecraft/recipe/display/SlotDisplay;intermediary method_66338Lnet/minecraft/class_10591;method_66338()Lnet/minecraft/class_10302;official aLdqh;a()Ldqq;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
itemEntry
Returns the value of theitemEntryrecord component.- Returns:
- the value of the
itemEntryrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-