Package net.minecraft.recipe.display
Record Class SlotDisplay.StackSlotDisplay
java.lang.Object
java.lang.Record
net.minecraft.recipe.display.SlotDisplay.StackSlotDisplay
- Record Components:
stack
-
- All Implemented Interfaces:
SlotDisplay
- Enclosing interface:
SlotDisplay
public static record SlotDisplay.StackSlotDisplay(ItemStack stack)
extends Record
implements SlotDisplay
- Mappings:
Namespace Name named net/minecraft/recipe/display/SlotDisplay$StackSlotDisplay
intermediary net/minecraft/class_10302$class_10307
official ddo$f
named stack
intermediary comp_3274
official 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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SlotDisplay.StackSlotDisplay> static final PacketCodec
<RegistryByteBuf, SlotDisplay.StackSlotDisplay> static final SlotDisplay.Serializer
<SlotDisplay.StackSlotDisplay> private final ItemStack
The field for thestack
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Stream
<T> appendStacks
(ContextParameterMap parameters, DisplayedItemFactory<T> factory) boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isEnabled
(FeatureSet features) stack()
Returns the value of thestack
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.recipe.display.SlotDisplay
getFirst, getStacks
-
Field Details
-
stack
The field for thestack
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/recipe/display/SlotDisplay$StackSlotDisplay;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_54688
Lnet/minecraft/class_10302$class_10307;field_54688:Lcom/mojang/serialization/MapCodec;
official c
Lddo$f;c:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/recipe/display/SlotDisplay$StackSlotDisplay;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_54689
Lnet/minecraft/class_10302$class_10307;field_54689:Lnet/minecraft/class_9139;
official d
Lddo$f;d:Lzt;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERIALIZER
Lnet/minecraft/recipe/display/SlotDisplay$StackSlotDisplay;SERIALIZER:Lnet/minecraft/recipe/display/SlotDisplay$Serializer;
intermediary field_54690
Lnet/minecraft/class_10302$class_10307;field_54690:Lnet/minecraft/class_10302$class_10312;
official e
Lddo$f;e:Lddo$i;
-
-
Constructor Details
-
StackSlotDisplay
-
-
Method Details
-
serializer
- Specified by:
serializer
in interfaceSlotDisplay
- 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
- Specified by:
appendStacks
in interfaceSlotDisplay
- 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;
-
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)
. -
isEnabled
- Specified by:
isEnabled
in interfaceSlotDisplay
- Mappings:
Namespace Name Mixin selector named isEnabled
Lnet/minecraft/recipe/display/SlotDisplay;isEnabled(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Z
intermediary method_64737
Lnet/minecraft/class_10302;method_64737(Lnet/minecraft/class_7699;)Z
official a
Lddo;a(Lcss;)Z
-
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. -
stack
Returns the value of thestack
record component.- Returns:
- the value of the
stack
record component
-