Class ContainerComponent

java.lang.Object
net.minecraft.component.type.ContainerComponent

public final class ContainerComponent extends Object
Mappings:
Namespace Name
named net/minecraft/component/type/ContainerComponent
intermediary net/minecraft/class_9288
official cxm
  • Field Details

    • ALL_SLOTS_EMPTY

      private static final int ALL_SLOTS_EMPTY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ALL_SLOTS_EMPTY Lnet/minecraft/component/type/ContainerComponent;ALL_SLOTS_EMPTY:I
      intermediary field_51410 Lnet/minecraft/class_9288;field_51410:I
      official d Lcxm;d:I
    • MAX_SLOTS

      private static final int MAX_SLOTS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_SLOTS Lnet/minecraft/component/type/ContainerComponent;MAX_SLOTS:I
      intermediary field_49337 Lnet/minecraft/class_9288;field_49337:I
      official e Lcxm;e:I
    • DEFAULT

      public static final ContainerComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/ContainerComponent;DEFAULT:Lnet/minecraft/component/type/ContainerComponent;
      intermediary field_49334 Lnet/minecraft/class_9288;field_49334:Lnet/minecraft/class_9288;
      official a Lcxm;a:Lcxm;
    • CODEC

      public static final com.mojang.serialization.Codec<ContainerComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/ContainerComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49335 Lnet/minecraft/class_9288;field_49335:Lcom/mojang/serialization/Codec;
      official b Lcxm;b:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,ContainerComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/ContainerComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49336 Lnet/minecraft/class_9288;field_49336:Lnet/minecraft/class_9139;
      official c Lcxm;c:Lzn;
    • stacks

      private final DefaultedList<ItemStack> stacks
      Mappings:
      Namespace Name Mixin selector
      named stacks Lnet/minecraft/component/type/ContainerComponent;stacks:Lnet/minecraft/util/collection/DefaultedList;
      intermediary field_49338 Lnet/minecraft/class_9288;field_49338:Lnet/minecraft/class_2371;
      official f Lcxm;f:Ljr;
    • hashCode

      private final int hashCode
      Mappings:
      Namespace Name Mixin selector
      named hashCode Lnet/minecraft/component/type/ContainerComponent;hashCode:I
      intermediary field_51511 Lnet/minecraft/class_9288;field_51511:I
      official g Lcxm;g:I
  • Constructor Details

    • ContainerComponent

      private ContainerComponent(DefaultedList<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/ContainerComponent;<init>(Lnet/minecraft/util/collection/DefaultedList;)V
      intermediary <init> Lnet/minecraft/class_9288;<init>(Lnet/minecraft/class_2371;)V
      official <init> Lcxm;<init>(Ljr;)V
    • ContainerComponent

      private ContainerComponent(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/ContainerComponent;<init>(I)V
      intermediary <init> Lnet/minecraft/class_9288;<init>(I)V
      official <init> Lcxm;<init>(I)V
    • ContainerComponent

      private ContainerComponent(List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/ContainerComponent;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_9288;<init>(Ljava/util/List;)V
      official <init> Lcxm;<init>(Ljava/util/List;)V
  • Method Details

    • fromSlots

      private static ContainerComponent fromSlots(List<ContainerComponent.Slot> slots)
      Mappings:
      Namespace Name Mixin selector
      named fromSlots Lnet/minecraft/component/type/ContainerComponent;fromSlots(Ljava/util/List;)Lnet/minecraft/component/type/ContainerComponent;
      intermediary method_57496 Lnet/minecraft/class_9288;method_57496(Ljava/util/List;)Lnet/minecraft/class_9288;
      official b Lcxm;b(Ljava/util/List;)Lcxm;
    • fromStacks

      public static ContainerComponent fromStacks(List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named fromStacks Lnet/minecraft/component/type/ContainerComponent;fromStacks(Ljava/util/List;)Lnet/minecraft/component/type/ContainerComponent;
      intermediary method_57493 Lnet/minecraft/class_9288;method_57493(Ljava/util/List;)Lnet/minecraft/class_9288;
      official a Lcxm;a(Ljava/util/List;)Lcxm;
    • findFirstNonEmptyIndex

      private static int findFirstNonEmptyIndex(List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named findFirstNonEmptyIndex Lnet/minecraft/component/type/ContainerComponent;findFirstNonEmptyIndex(Ljava/util/List;)I
      intermediary method_59713 Lnet/minecraft/class_9288;method_59713(Ljava/util/List;)I
      official c Lcxm;c(Ljava/util/List;)I
    • collectSlots

      private List<ContainerComponent.Slot> collectSlots()
      Mappings:
      Namespace Name Mixin selector
      named collectSlots Lnet/minecraft/component/type/ContainerComponent;collectSlots()Ljava/util/List;
      intermediary method_57494 Lnet/minecraft/class_9288;method_57494()Ljava/util/List;
      official f Lcxm;f()Ljava/util/List;
    • copyTo

      public void copyTo(DefaultedList<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named copyTo Lnet/minecraft/component/type/ContainerComponent;copyTo(Lnet/minecraft/util/collection/DefaultedList;)V
      intermediary method_57492 Lnet/minecraft/class_9288;method_57492(Lnet/minecraft/class_2371;)V
      official a Lcxm;a(Ljr;)V
    • copyFirstStack

      public ItemStack copyFirstStack()
      Mappings:
      Namespace Name Mixin selector
      named copyFirstStack Lnet/minecraft/component/type/ContainerComponent;copyFirstStack()Lnet/minecraft/item/ItemStack;
      intermediary method_58114 Lnet/minecraft/class_9288;method_58114()Lnet/minecraft/class_1799;
      official a Lcxm;a()Lcuq;
    • stream

      public Stream<ItemStack> stream()
      Mappings:
      Namespace Name Mixin selector
      named stream Lnet/minecraft/component/type/ContainerComponent;stream()Ljava/util/stream/Stream;
      intermediary method_57489 Lnet/minecraft/class_9288;method_57489()Ljava/util/stream/Stream;
      official b Lcxm;b()Ljava/util/stream/Stream;
    • streamNonEmpty

      public Stream<ItemStack> streamNonEmpty()
      Mappings:
      Namespace Name Mixin selector
      named streamNonEmpty Lnet/minecraft/component/type/ContainerComponent;streamNonEmpty()Ljava/util/stream/Stream;
      intermediary method_59712 Lnet/minecraft/class_9288;method_59712()Ljava/util/stream/Stream;
      official c Lcxm;c()Ljava/util/stream/Stream;
    • iterateNonEmpty

      public Iterable<ItemStack> iterateNonEmpty()
      Mappings:
      Namespace Name Mixin selector
      named iterateNonEmpty Lnet/minecraft/component/type/ContainerComponent;iterateNonEmpty()Ljava/lang/Iterable;
      intermediary method_59714 Lnet/minecraft/class_9288;method_59714()Ljava/lang/Iterable;
      official d Lcxm;d()Ljava/lang/Iterable;
    • iterateNonEmptyCopy

      public Iterable<ItemStack> iterateNonEmptyCopy()
      Mappings:
      Namespace Name Mixin selector
      named iterateNonEmptyCopy Lnet/minecraft/component/type/ContainerComponent;iterateNonEmptyCopy()Ljava/lang/Iterable;
      intermediary method_59715 Lnet/minecraft/class_9288;method_59715()Ljava/lang/Iterable;
      official e Lcxm;e()Ljava/lang/Iterable;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/component/type/ContainerComponent;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_9288;equals(Ljava/lang/Object;)Z
      official equals Lcxm;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object