Class BundleContentsComponent.Builder

java.lang.Object
net.minecraft.component.type.BundleContentsComponent.Builder
Enclosing class:
BundleContentsComponent

public static class BundleContentsComponent.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/component/type/BundleContentsComponent$Builder
intermediary net/minecraft/class_9276$class_9277
official czs$a
  • Field Details

    • stacks

      private final List<ItemStack> stacks
      Mappings:
      Namespace Name Mixin selector
      named stacks Lnet/minecraft/component/type/BundleContentsComponent$Builder;stacks:Ljava/util/List;
      intermediary field_49296 Lnet/minecraft/class_9276$class_9277;field_49296:Ljava/util/List;
      official a Lczs$a;a:Ljava/util/List;
    • occupancy

      private Fraction occupancy
      Mappings:
      Namespace Name Mixin selector
      named occupancy Lnet/minecraft/component/type/BundleContentsComponent$Builder;occupancy:Lorg/apache/commons/lang3/math/Fraction;
      intermediary field_49297 Lnet/minecraft/class_9276$class_9277;field_49297:Lorg/apache/commons/lang3/math/Fraction;
      official b Lczs$a;b:Lorg/apache/commons/lang3/math/Fraction;
    • selectedStackIndex

      private int selectedStackIndex
      Mappings:
      Namespace Name Mixin selector
      named selectedStackIndex Lnet/minecraft/component/type/BundleContentsComponent$Builder;selectedStackIndex:I
      intermediary field_52593 Lnet/minecraft/class_9276$class_9277;field_52593:I
      official c Lczs$a;c:I
  • Constructor Details

    • Builder

      public Builder(BundleContentsComponent base)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/BundleContentsComponent$Builder;<init>(Lnet/minecraft/component/type/BundleContentsComponent;)V
      intermediary <init> Lnet/minecraft/class_9276$class_9277;<init>(Lnet/minecraft/class_9276;)V
      official <init> Lczs$a;<init>(Lczs;)V
  • Method Details

    • clear

      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/component/type/BundleContentsComponent$Builder;clear()Lnet/minecraft/component/type/BundleContentsComponent$Builder;
      intermediary method_59709 Lnet/minecraft/class_9276$class_9277;method_59709()Lnet/minecraft/class_9276$class_9277;
      official a Lczs$a;a()Lczs$a;
    • getInsertionIndex

      private int getInsertionIndex(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getInsertionIndex Lnet/minecraft/component/type/BundleContentsComponent$Builder;getInsertionIndex(Lnet/minecraft/item/ItemStack;)I
      intermediary method_57434 Lnet/minecraft/class_9276$class_9277;method_57434(Lnet/minecraft/class_1799;)I
      official b Lczs$a;b(Lcxo;)I
    • getMaxAllowed

      private int getMaxAllowed(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getMaxAllowed Lnet/minecraft/component/type/BundleContentsComponent$Builder;getMaxAllowed(Lnet/minecraft/item/ItemStack;)I
      intermediary method_57436 Lnet/minecraft/class_9276$class_9277;method_57436(Lnet/minecraft/class_1799;)I
      official c Lczs$a;c(Lcxo;)I
    • add

      public int add(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/type/BundleContentsComponent$Builder;add(Lnet/minecraft/item/ItemStack;)I
      intermediary method_57432 Lnet/minecraft/class_9276$class_9277;method_57432(Lnet/minecraft/class_1799;)I
      official a Lczs$a;a(Lcxo;)I
    • add

      public int add(Slot slot, PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/component/type/BundleContentsComponent$Builder;add(Lnet/minecraft/screen/slot/Slot;Lnet/minecraft/entity/player/PlayerEntity;)I
      intermediary method_57431 Lnet/minecraft/class_9276$class_9277;method_57431(Lnet/minecraft/class_1735;Lnet/minecraft/class_1657;)I
      official a Lczs$a;a(Lcuy;Lcpw;)I
    • setSelectedStackIndex

      public void setSelectedStackIndex(int selectedStackIndex)
      Mappings:
      Namespace Name Mixin selector
      named setSelectedStackIndex Lnet/minecraft/component/type/BundleContentsComponent$Builder;setSelectedStackIndex(I)V
      intermediary method_64662 Lnet/minecraft/class_9276$class_9277;method_64662(I)V
      official a Lczs$a;a(I)V
    • removeSelected

      @Nullable public @Nullable ItemStack removeSelected()
      Mappings:
      Namespace Name Mixin selector
      named removeSelected Lnet/minecraft/component/type/BundleContentsComponent$Builder;removeSelected()Lnet/minecraft/item/ItemStack;
      intermediary method_57430 Lnet/minecraft/class_9276$class_9277;method_57430()Lnet/minecraft/class_1799;
      official b Lczs$a;b()Lcxo;
    • getOccupancy

      public Fraction getOccupancy()
      Mappings:
      Namespace Name Mixin selector
      named getOccupancy Lnet/minecraft/component/type/BundleContentsComponent$Builder;getOccupancy()Lorg/apache/commons/lang3/math/Fraction;
      intermediary method_57433 Lnet/minecraft/class_9276$class_9277;method_57433()Lorg/apache/commons/lang3/math/Fraction;
      official c Lczs$a;c()Lorg/apache/commons/lang3/math/Fraction;
    • build

      public BundleContentsComponent build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/type/BundleContentsComponent$Builder;build()Lnet/minecraft/component/type/BundleContentsComponent;
      intermediary method_57435 Lnet/minecraft/class_9276$class_9277;method_57435()Lnet/minecraft/class_9276;
      official d Lczs$a;d()Lczs;