Record Class SlotDisplay.TagSlotDisplay

java.lang.Object
java.lang.Record
net.minecraft.recipe.display.SlotDisplay.TagSlotDisplay
Record Components:
tag -
All Implemented Interfaces:
SlotDisplay
Enclosing interface:
SlotDisplay

public static record SlotDisplay.TagSlotDisplay(TagKey<Item> tag) extends Record implements SlotDisplay
Mappings:
Namespace Name
named net/minecraft/recipe/display/SlotDisplay$TagSlotDisplay
intermediary net/minecraft/class_10302$class_10311
official ddo$h
named tag
intermediary comp_3275
official f
  • Field Details

    • tag

      private final TagKey<Item> tag
      The field for the tag record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<SlotDisplay.TagSlotDisplay> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/recipe/display/SlotDisplay$TagSlotDisplay;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_54696 Lnet/minecraft/class_10302$class_10311;field_54696:Lcom/mojang/serialization/MapCodec;
      official c Lddo$h;c:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,SlotDisplay.TagSlotDisplay> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/recipe/display/SlotDisplay$TagSlotDisplay;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_54697 Lnet/minecraft/class_10302$class_10311;field_54697:Lnet/minecraft/class_9139;
      official d Lddo$h;d:Lzt;
    • SERIALIZER

      public static final SlotDisplay.Serializer<SlotDisplay.TagSlotDisplay> SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      named SERIALIZER Lnet/minecraft/recipe/display/SlotDisplay$TagSlotDisplay;SERIALIZER:Lnet/minecraft/recipe/display/SlotDisplay$Serializer;
      intermediary field_54698 Lnet/minecraft/class_10302$class_10311;field_54698:Lnet/minecraft/class_10302$class_10312;
      official e Lddo$h;e:Lddo$i;
  • Constructor Details

    • TagSlotDisplay

      public TagSlotDisplay(TagKey<Item> tagKey)
  • Method Details

    • serializer

      Specified by:
      serializer in interface SlotDisplay
      Mappings:
      Namespace Name Mixin selector
      named serializer Lnet/minecraft/recipe/display/SlotDisplay;serializer()Lnet/minecraft/recipe/display/SlotDisplay$Serializer;
      intermediary method_64736 Lnet/minecraft/class_10302;method_64736()Lnet/minecraft/class_10302$class_10312;
      official a Lddo;a()Lddo$i;
    • appendStacks

      public <T> Stream<T> appendStacks(ContextParameterMap parameters, DisplayedItemFactory<T> factory)
      Specified by:
      appendStacks in interface SlotDisplay
      Mappings:
      Namespace Name Mixin selector
      named appendStacks Lnet/minecraft/recipe/display/SlotDisplay;appendStacks(Lnet/minecraft/util/context/ContextParameterMap;Lnet/minecraft/recipe/display/DisplayedItemFactory;)Ljava/util/stream/Stream;
      intermediary method_64739 Lnet/minecraft/class_10302;method_64739(Lnet/minecraft/class_10352;Lnet/minecraft/class_10358;)Ljava/util/stream/Stream;
      official a Lddo;a(Lbbp;Lddg;)Ljava/util/stream/Stream;
    • toString

      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

      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

      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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • tag

      public TagKey<Item> tag()
      Returns the value of the tag record component.
      Returns:
      the value of the tag record component