Package net.minecraft.recipe.display
Record Class SlotDisplay.SmithingTrimSlotDisplay
java.lang.Object
java.lang.Record
net.minecraft.recipe.display.SlotDisplay.SmithingTrimSlotDisplay
- Record Components:
base-material-pattern-
- All Implemented Interfaces:
SlotDisplay
- Enclosing interface:
SlotDisplay
public static record SlotDisplay.SmithingTrimSlotDisplay(SlotDisplay base, SlotDisplay material, RegistryEntry<ArmorTrimPattern> pattern)
extends Record
implements SlotDisplay
- Mappings:
Namespace Name named net/minecraft/recipe/display/SlotDisplay$SmithingTrimSlotDisplayintermediary net/minecraft/class_10302$class_10310official dgn$gnamed baseintermediary comp_3297official fnamed materialintermediary comp_3298official gnamed patternintermediary comp_3299official h
-
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 TypeFieldDescriptionprivate final SlotDisplayThe field for thebaserecord component.static final com.mojang.serialization.MapCodec<SlotDisplay.SmithingTrimSlotDisplay> private final SlotDisplayThe field for thematerialrecord component.static final PacketCodec<RegistryByteBuf, SlotDisplay.SmithingTrimSlotDisplay> private final RegistryEntry<ArmorTrimPattern> The field for thepatternrecord component.static final SlotDisplay.Serializer<SlotDisplay.SmithingTrimSlotDisplay> -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTrimSlotDisplay(SlotDisplay slotDisplay, SlotDisplay slotDisplay2, RegistryEntry<ArmorTrimPattern> registryEntry) -
Method Summary
Modifier and TypeMethodDescription<T> Stream<T> appendStacks(ContextParameterMap parameters, DisplayedItemFactory<T> factory) base()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.material()Returns the value of thematerialrecord component.pattern()Returns the value of thepatternrecord 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
-
base
The field for thebaserecord component. -
material
The field for thematerialrecord component. -
pattern
The field for thepatternrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/recipe/display/SlotDisplay$SmithingTrimSlotDisplay;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_54693Lnet/minecraft/class_10302$class_10310;field_54693:Lcom/mojang/serialization/MapCodec;official cLdgn$g;c:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/recipe/display/SlotDisplay$SmithingTrimSlotDisplay;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_54694Lnet/minecraft/class_10302$class_10310;field_54694:Lnet/minecraft/class_9139;official dLdgn$g;d:Lze;
-
SERIALIZER
- Mappings:
Namespace Name Mixin selector named SERIALIZERLnet/minecraft/recipe/display/SlotDisplay$SmithingTrimSlotDisplay;SERIALIZER:Lnet/minecraft/recipe/display/SlotDisplay$Serializer;intermediary field_54695Lnet/minecraft/class_10302$class_10310;field_54695:Lnet/minecraft/class_10302$class_10312;official eLdgn$g;e:Ldgn$i;
-
-
Constructor Details
-
SmithingTrimSlotDisplay
public SmithingTrimSlotDisplay(SlotDisplay slotDisplay, SlotDisplay slotDisplay2, RegistryEntry<ArmorTrimPattern> registryEntry)
-
-
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 aLdgn;a()Ldgn$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 aLdgn;a(Lbbm;Ldgf;)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). -
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
material
Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-