Class BundleContentsComponent

java.lang.Object
net.minecraft.component.type.BundleContentsComponent
All Implemented Interfaces:
TooltipData

public final class BundleContentsComponent extends Object implements TooltipData
Mappings:
Namespace Name
named net/minecraft/component/type/BundleContentsComponent
intermediary net/minecraft/class_9276
official czs
  • Field Details

    • DEFAULT

      public static final BundleContentsComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/BundleContentsComponent;DEFAULT:Lnet/minecraft/component/type/BundleContentsComponent;
      intermediary field_49289 Lnet/minecraft/class_9276;field_49289:Lnet/minecraft/class_9276;
      official a Lczs;a:Lczs;
    • CODEC

      public static final com.mojang.serialization.Codec<BundleContentsComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/BundleContentsComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49290 Lnet/minecraft/class_9276;field_49290:Lcom/mojang/serialization/Codec;
      official b Lczs;b:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,BundleContentsComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/BundleContentsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49291 Lnet/minecraft/class_9276;field_49291:Lnet/minecraft/class_9139;
      official c Lczs;c:Lzt;
    • NESTED_BUNDLE_OCCUPANCY

      private static final Fraction NESTED_BUNDLE_OCCUPANCY
      Mappings:
      Namespace Name Mixin selector
      named NESTED_BUNDLE_OCCUPANCY Lnet/minecraft/component/type/BundleContentsComponent;NESTED_BUNDLE_OCCUPANCY:Lorg/apache/commons/lang3/math/Fraction;
      intermediary field_49292 Lnet/minecraft/class_9276;field_49292:Lorg/apache/commons/lang3/math/Fraction;
      official e Lczs;e:Lorg/apache/commons/lang3/math/Fraction;
    • ADD_TO_NEW_SLOT

      private static final int ADD_TO_NEW_SLOT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ADD_TO_NEW_SLOT Lnet/minecraft/component/type/BundleContentsComponent;ADD_TO_NEW_SLOT:I
      intermediary field_49293 Lnet/minecraft/class_9276;field_49293:I
      official f Lczs;f:I
    • field_52591

      public static final int field_52591
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52591 Lnet/minecraft/component/type/BundleContentsComponent;field_52591:I
      intermediary field_52591 Lnet/minecraft/class_9276;field_52591:I
      official d Lczs;d:I
    • stacks

      final List<ItemStack> stacks
      Mappings:
      Namespace Name Mixin selector
      named stacks Lnet/minecraft/component/type/BundleContentsComponent;stacks:Ljava/util/List;
      intermediary field_49294 Lnet/minecraft/class_9276;field_49294:Ljava/util/List;
      official g Lczs;g:Ljava/util/List;
    • occupancy

      final Fraction occupancy
      Mappings:
      Namespace Name Mixin selector
      named occupancy Lnet/minecraft/component/type/BundleContentsComponent;occupancy:Lorg/apache/commons/lang3/math/Fraction;
      intermediary field_49295 Lnet/minecraft/class_9276;field_49295:Lorg/apache/commons/lang3/math/Fraction;
      official h Lczs;h:Lorg/apache/commons/lang3/math/Fraction;
    • selectedStackIndex

      final int selectedStackIndex
      Mappings:
      Namespace Name Mixin selector
      named selectedStackIndex Lnet/minecraft/component/type/BundleContentsComponent;selectedStackIndex:I
      intermediary field_52592 Lnet/minecraft/class_9276;field_52592:I
      official i Lczs;i:I
  • Constructor Details

    • BundleContentsComponent

      BundleContentsComponent(List<ItemStack> stacks, Fraction occupancy, int selectedStackIndex)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;I)V
      intermediary <init> Lnet/minecraft/class_9276;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;I)V
      official <init> Lczs;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;I)V
    • BundleContentsComponent

      public BundleContentsComponent(List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_9276;<init>(Ljava/util/List;)V
      official <init> Lczs;<init>(Ljava/util/List;)V
  • Method Details

    • validateOccupancy

      private static com.mojang.serialization.DataResult<BundleContentsComponent> validateOccupancy(List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named validateOccupancy Lnet/minecraft/component/type/BundleContentsComponent;validateOccupancy(Ljava/util/List;)Lcom/mojang/serialization/DataResult;
      intermediary method_65061 Lnet/minecraft/class_9276;method_65061(Ljava/util/List;)Lcom/mojang/serialization/DataResult;
      official a Lczs;a(Ljava/util/List;)Lcom/mojang/serialization/DataResult;
    • calculateOccupancy

      private static Fraction calculateOccupancy(List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named calculateOccupancy Lnet/minecraft/component/type/BundleContentsComponent;calculateOccupancy(Ljava/util/List;)Lorg/apache/commons/lang3/math/Fraction;
      intermediary method_57425 Lnet/minecraft/class_9276;method_57425(Ljava/util/List;)Lorg/apache/commons/lang3/math/Fraction;
      official b Lczs;b(Ljava/util/List;)Lorg/apache/commons/lang3/math/Fraction;
    • getOccupancy

      static Fraction getOccupancy(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getOccupancy Lnet/minecraft/component/type/BundleContentsComponent;getOccupancy(Lnet/minecraft/item/ItemStack;)Lorg/apache/commons/lang3/math/Fraction;
      intermediary method_57423 Lnet/minecraft/class_9276;method_57423(Lnet/minecraft/class_1799;)Lorg/apache/commons/lang3/math/Fraction;
      official b Lczs;b(Lcxo;)Lorg/apache/commons/lang3/math/Fraction;
    • canBeBundled

      public static boolean canBeBundled(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named canBeBundled Lnet/minecraft/component/type/BundleContentsComponent;canBeBundled(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_61667 Lnet/minecraft/class_9276;method_61667(Lnet/minecraft/class_1799;)Z
      official a Lczs;a(Lcxo;)Z
    • getNumberOfStacksShown

      public int getNumberOfStacksShown()
      Mappings:
      Namespace Name Mixin selector
      named getNumberOfStacksShown Lnet/minecraft/component/type/BundleContentsComponent;getNumberOfStacksShown()I
      intermediary method_61666 Lnet/minecraft/class_9276;method_61666()I
      official a Lczs;a()I
    • get

      public ItemStack get(int index)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/component/type/BundleContentsComponent;get(I)Lnet/minecraft/item/ItemStack;
      intermediary method_57422 Lnet/minecraft/class_9276;method_57422(I)Lnet/minecraft/class_1799;
      official a Lczs;a(I)Lcxo;
    • stream

      public Stream<ItemStack> stream()
      Mappings:
      Namespace Name Mixin selector
      named stream Lnet/minecraft/component/type/BundleContentsComponent;stream()Ljava/util/stream/Stream;
      intermediary method_59707 Lnet/minecraft/class_9276;method_59707()Ljava/util/stream/Stream;
      official b Lczs;b()Ljava/util/stream/Stream;
    • iterate

      public Iterable<ItemStack> iterate()
      Mappings:
      Namespace Name Mixin selector
      named iterate Lnet/minecraft/component/type/BundleContentsComponent;iterate()Ljava/lang/Iterable;
      intermediary method_57421 Lnet/minecraft/class_9276;method_57421()Ljava/lang/Iterable;
      official c Lczs;c()Ljava/lang/Iterable;
    • iterateCopy

      public Iterable<ItemStack> iterateCopy()
      Mappings:
      Namespace Name Mixin selector
      named iterateCopy Lnet/minecraft/component/type/BundleContentsComponent;iterateCopy()Ljava/lang/Iterable;
      intermediary method_59708 Lnet/minecraft/class_9276;method_59708()Ljava/lang/Iterable;
      official d Lczs;d()Ljava/lang/Iterable;
    • size

      public int size()
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/component/type/BundleContentsComponent;size()I
      intermediary method_57426 Lnet/minecraft/class_9276;method_57426()I
      official e Lczs;e()I
    • getOccupancy

      public Fraction getOccupancy()
      Mappings:
      Namespace Name Mixin selector
      named getOccupancy Lnet/minecraft/component/type/BundleContentsComponent;getOccupancy()Lorg/apache/commons/lang3/math/Fraction;
      intermediary method_57428 Lnet/minecraft/class_9276;method_57428()Lorg/apache/commons/lang3/math/Fraction;
      official f Lczs;f()Lorg/apache/commons/lang3/math/Fraction;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/component/type/BundleContentsComponent;isEmpty()Z
      intermediary method_57429 Lnet/minecraft/class_9276;method_57429()Z
      official g Lczs;g()Z
    • getSelectedStackIndex

      public int getSelectedStackIndex()
      Mappings:
      Namespace Name Mixin selector
      named getSelectedStackIndex Lnet/minecraft/component/type/BundleContentsComponent;getSelectedStackIndex()I
      intermediary method_61668 Lnet/minecraft/class_9276;method_61668()I
      official h Lczs;h()I
    • hasSelectedStack

      public boolean hasSelectedStack()
      Mappings:
      Namespace Name Mixin selector
      named hasSelectedStack Lnet/minecraft/component/type/BundleContentsComponent;hasSelectedStack()Z
      intermediary method_61669 Lnet/minecraft/class_9276;method_61669()Z
      official i Lczs;i()Z
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object