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/TransmuteRecipeResult
intermediary net/minecraft/class_10591
official dge
named itemEntry
intermediary comp_3483
official c
named count
intermediary comp_3484
official d
named components
intermediary comp_3485
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<TransmuteRecipeResult> static final com.mojang.serialization.Codec
<TransmuteRecipeResult> private final ComponentChanges
The field for thecomponents
record component.private final int
The field for thecount
record component.private final RegistryEntry
<Item> The field for theitemEntry
record component.static final PacketCodec
<RegistryByteBuf, TransmuteRecipeResult> -
Constructor Summary
ConstructorsConstructorDescriptionTransmuteRecipeResult
(Item item) TransmuteRecipeResult
(RegistryEntry<Item> registryEntry, int int2, ComponentChanges componentChanges) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponents
record component.int
count()
Returns the value of thecount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isEqualToResult
(ItemStack stack) Returns the value of theitemEntry
record component.final String
toString()
Returns a string representation of this record class.private static com.mojang.serialization.DataResult
<TransmuteRecipeResult> validate
(TransmuteRecipeResult result)
-
Field Details
-
itemEntry
The field for theitemEntry
record component. -
count
private final int countThe field for thecount
record component. -
components
The field for thecomponents
record component. -
BASE_CODEC
- Mappings:
Namespace Name Mixin selector named BASE_CODEC
Lnet/minecraft/recipe/TransmuteRecipeResult;BASE_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_55716
Lnet/minecraft/class_10591;field_55716:Lcom/mojang/serialization/Codec;
official f
Ldge;f:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/recipe/TransmuteRecipeResult;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_55714
Lnet/minecraft/class_10591;field_55714:Lcom/mojang/serialization/Codec;
official a
Ldge;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/recipe/TransmuteRecipeResult;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_55715
Lnet/minecraft/class_10591;field_55715:Lnet/minecraft/class_9139;
official b
Ldge;b:Lze;
-
-
Constructor Details
-
TransmuteRecipeResult
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/recipe/TransmuteRecipeResult;<init>(Lnet/minecraft/item/Item;)V
intermediary <init>
Lnet/minecraft/class_10591;<init>(Lnet/minecraft/class_1792;)V
official <init>
Ldge;<init>(Ldag;)V
-
TransmuteRecipeResult
public TransmuteRecipeResult(RegistryEntry<Item> registryEntry, int int2, ComponentChanges componentChanges)
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<TransmuteRecipeResult> validate(TransmuteRecipeResult result) - Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/recipe/TransmuteRecipeResult;validate(Lnet/minecraft/recipe/TransmuteRecipeResult;)Lcom/mojang/serialization/DataResult;
intermediary method_66341
Lnet/minecraft/class_10591;method_66341(Lnet/minecraft/class_10591;)Lcom/mojang/serialization/DataResult;
official a
Ldge;a(Ldge;)Lcom/mojang/serialization/DataResult;
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/recipe/TransmuteRecipeResult;apply(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
intermediary method_66340
Lnet/minecraft/class_10591;method_66340(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
official a
Ldge;a(Ldak;)Ldak;
-
isEqualToResult
- Mappings:
Namespace Name Mixin selector named isEqualToResult
Lnet/minecraft/recipe/TransmuteRecipeResult;isEqualToResult(Lnet/minecraft/item/ItemStack;)Z
intermediary method_67389
Lnet/minecraft/class_10591;method_67389(Lnet/minecraft/class_1799;)Z
official b
Ldge;b(Ldak;)Z
-
createSlotDisplay
- Mappings:
Namespace Name Mixin selector named createSlotDisplay
Lnet/minecraft/recipe/TransmuteRecipeResult;createSlotDisplay()Lnet/minecraft/recipe/display/SlotDisplay;
intermediary method_66338
Lnet/minecraft/class_10591;method_66338()Lnet/minecraft/class_10302;
official a
Ldge;a()Ldgn;
-
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 theitemEntry
record component.- Returns:
- the value of the
itemEntry
record component
-
count
public int count()Returns the value of thecount
record component.- Returns:
- the value of the
count
record component
-
components
Returns the value of thecomponents
record component.- Returns:
- the value of the
components
record component
-