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 cxf
  • 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 Lcxf;a:Lcxf;
    • 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 Lcxf;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 Lcxf;c:Lyx;
    • 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 d Lcxf;d: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 e Lcxf;e: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 f Lcxf;f: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 g Lcxf;g:Lorg/apache/commons/lang3/math/Fraction;
  • Constructor Details

    • BundleContentsComponent

      BundleContentsComponent(List<ItemStack> stacks, Fraction occupancy)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;)V
      intermediary <init> Lnet/minecraft/class_9276;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;)V
      official <init> Lcxf;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;)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> Lcxf;<init>(Ljava/util/List;)V
  • Method Details

    • 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 a Lcxf;a(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 a Lcxf;a(Lcuq;)Lorg/apache/commons/lang3/math/Fraction;
    • 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 Lcxf;a(I)Lcuq;
    • 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 a Lcxf;a()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 b Lcxf;b()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 c Lcxf;c()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 d Lcxf;d()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 e Lcxf;e()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 f Lcxf;f()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 Lcxf;equals(Ljava/lang/Object;)Z
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object