Package net.minecraft.recipe.display
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$TagSlotDisplayintermediary net/minecraft/class_10302$class_10311official dps$hnamed tagintermediary comp_3275official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.recipe.display.SlotDisplay
SlotDisplay.AnyFuelSlotDisplay, SlotDisplay.CompositeSlotDisplay, SlotDisplay.EmptySlotDisplay, SlotDisplay.ItemSlotDisplay, SlotDisplay.NoopDisplayedItemFactory, SlotDisplay.Serializer<T extends SlotDisplay>, SlotDisplay.SmithingTrimSlotDisplay, SlotDisplay.StackSlotDisplay, SlotDisplay.TagSlotDisplay, SlotDisplay.WithRemainderSlotDisplay -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SlotDisplay.TagSlotDisplay> static final PacketCodec<RegistryByteBuf, SlotDisplay.TagSlotDisplay> static final SlotDisplay.Serializer<SlotDisplay.TagSlotDisplay> The field for thetagrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTagSlotDisplay(TagKey<Item> tag) Creates an instance of aTagSlotDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescription<T> Stream<T> appendStacks(ContextParameterMap parameters, DisplayedItemFactory<T> factory) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.recipe.display.SlotDisplay
getFirst, getStacks, isEnabled
-
Field Details
-
tag
The field for thetagrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/recipe/display/SlotDisplay$TagSlotDisplay;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_54696Lnet/minecraft/class_10302$class_10311;field_54696:Lcom/mojang/serialization/MapCodec;official cLdps$h;c:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/recipe/display/SlotDisplay$TagSlotDisplay;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_54697Lnet/minecraft/class_10302$class_10311;field_54697:Lnet/minecraft/class_9139;official dLdps$h;d:Laat;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERIALIZERLnet/minecraft/recipe/display/SlotDisplay$TagSlotDisplay;SERIALIZER:Lnet/minecraft/recipe/display/SlotDisplay$Serializer;intermediary field_54698Lnet/minecraft/class_10302$class_10311;field_54698:Lnet/minecraft/class_10302$class_10312;official eLdps$h;e:Ldps$i;
-
-
Constructor Details
-
TagSlotDisplay
Creates an instance of aTagSlotDisplayrecord class.- Parameters:
tag- the value for thetagrecord component
-
-
Method Details
-
serializer
- Specified by:
serializerin interfaceSlotDisplay- Mappings:
Namespace Name Mixin selector named serializerLnet/minecraft/recipe/display/SlotDisplay;serializer()Lnet/minecraft/recipe/display/SlotDisplay$Serializer;intermediary method_64736Lnet/minecraft/class_10302;method_64736()Lnet/minecraft/class_10302$class_10312;official aLdps;a()Ldps$i;
-
appendStacks
- Specified by:
appendStacksin interfaceSlotDisplay- Mappings:
Namespace Name Mixin selector named appendStacksLnet/minecraft/recipe/display/SlotDisplay;appendStacks(Lnet/minecraft/util/context/ContextParameterMap;Lnet/minecraft/recipe/display/DisplayedItemFactory;)Ljava/util/stream/Stream;intermediary method_64739Lnet/minecraft/class_10302;method_64739(Lnet/minecraft/class_10352;Lnet/minecraft/class_10358;)Ljava/util/stream/Stream;official aLdps;a(Lbhx;Ldpk;)Ljava/util/stream/Stream;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-