Package net.minecraft.recipe.display
Record Class SlotDisplay.ItemSlotDisplay
java.lang.Object
java.lang.Record
net.minecraft.recipe.display.SlotDisplay.ItemSlotDisplay
- Record Components:
- item-
- All Implemented Interfaces:
- SlotDisplay
- Enclosing interface:
- SlotDisplay
public static record SlotDisplay.ItemSlotDisplay(RegistryEntry<Item> item)
extends Record
implements SlotDisplay
- Mappings:
- Namespace - Name - named - net/minecraft/recipe/display/SlotDisplay$ItemSlotDisplay- intermediary - net/minecraft/class_10302$class_10306- official - dcq$d- named - item- intermediary - comp_3273- official - f
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.recipe.display.SlotDisplaySlotDisplay.AnyFuelSlotDisplay, SlotDisplay.CompositeSlotDisplay, SlotDisplay.EmptySlotDisplay, SlotDisplay.ItemSlotDisplay, SlotDisplay.NoopDisplayedItemFactory, SlotDisplay.Serializer<T extends SlotDisplay>, SlotDisplay.SmithingTrimSlotDisplay, SlotDisplay.StackSlotDisplay, SlotDisplay.TagSlotDisplay, SlotDisplay.WithRemainderSlotDisplay
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SlotDisplay.ItemSlotDisplay> private final RegistryEntry<Item> The field for theitemrecord component.static final PacketCodec<RegistryByteBuf, SlotDisplay.ItemSlotDisplay> static final SlotDisplay.Serializer<SlotDisplay.ItemSlotDisplay> 
- 
Constructor SummaryConstructorsConstructorDescriptionItemSlotDisplay(Item item) ItemSlotDisplay(RegistryEntry<Item> registryEntry) 
- 
Method SummaryModifier 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.booleanisEnabled(FeatureSet features) item()Returns the value of theitemrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.recipe.display.SlotDisplaygetFirst, getStacks
- 
Field Details- 
itemThe field for theitemrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/recipe/display/SlotDisplay$ItemSlotDisplay;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_54685- Lnet/minecraft/class_10302$class_10306;field_54685:Lcom/mojang/serialization/MapCodec;- official - c- Ldcq$d;c:Lcom/mojang/serialization/MapCodec;
 
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/recipe/display/SlotDisplay$ItemSlotDisplay;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_54686- Lnet/minecraft/class_10302$class_10306;field_54686:Lnet/minecraft/class_9139;- official - d- Ldcq$d;d:Lyn;
 
- 
SERIALIZER- Mappings:
- Namespace - Name - Mixin selector - named - SERIALIZER- Lnet/minecraft/recipe/display/SlotDisplay$ItemSlotDisplay;SERIALIZER:Lnet/minecraft/recipe/display/SlotDisplay$Serializer;- intermediary - field_54687- Lnet/minecraft/class_10302$class_10306;field_54687:Lnet/minecraft/class_10302$class_10312;- official - e- Ldcq$d;e:Ldcq$i;
 
 
- 
- 
Constructor Details- 
ItemSlotDisplay- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/recipe/display/SlotDisplay$ItemSlotDisplay;<init>(Lnet/minecraft/item/Item;)V- intermediary - <init>- Lnet/minecraft/class_10302$class_10306;<init>(Lnet/minecraft/class_1792;)V- official - <init>- Ldcq$d;<init>(Lcwm;)V
 
- 
ItemSlotDisplay
 
- 
- 
Method Details- 
serializer- Specified by:
- serializerin 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- Ldcq;a()Ldcq$i;
 
- 
appendStacks- Specified by:
- appendStacksin 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- Ldcq;a(Lbak;Ldci;)Ljava/util/stream/Stream;
 
- 
isEnabled- Specified by:
- isEnabledin interface- SlotDisplay
- 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- Ldcq;a(Lcru;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
itemReturns the value of theitemrecord component.- Returns:
- the value of the itemrecord component
 
 
-