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 Details Link icon

    • itemEntry Link icon

      private final RegistryEntry<Item> itemEntry
      The field for the itemEntry record component.
    • count Link icon

      private final int count
      The field for the count record component.
    • components Link icon

      private final ComponentChanges components
      The field for the components record component.
    • BASE_CODEC Link icon

      private static final com.mojang.serialization.Codec<TransmuteRecipeResult> 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 Link icon

      public static final com.mojang.serialization.Codec<TransmuteRecipeResult> 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 Link icon

      public static final PacketCodec<RegistryByteBuf,TransmuteRecipeResult> 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 Link icon

    • TransmuteRecipeResult Link icon

      public TransmuteRecipeResult(Item item)
      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 Link icon

      public TransmuteRecipeResult(RegistryEntry<Item> registryEntry, int int2, ComponentChanges componentChanges)
  • Method Details Link icon

    • validate Link icon

      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 Link icon

      public ItemStack apply(ItemStack stack)
      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 Link icon

      public boolean isEqualToResult(ItemStack stack)
      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 Link icon

      public SlotDisplay 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 Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • itemEntry Link icon

      public RegistryEntry<Item> itemEntry()
      Returns the value of the itemEntry record component.
      Returns:
      the value of the itemEntry record component
    • count Link icon

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • components Link icon

      public ComponentChanges components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component