History - net.minecraft.component.type.BundleContentsComponent$Builder
26.3-snapshot-3
Names
Fields
Constructors
Methods
26.3-snapshot-2
Names
Fields
Constructors
Methods
26.3-snapshot-1
Names
Fields
List<ItemStack>: items, field_49296, stacks
boolean: needsFlattening, field_1_7507, dirty
Constructors
(List<ItemStack>, org.apache.commons.lang3.math.Fraction, int)
()
Methods
BundleContentsComponent (): toImmutable, method_57435, build
BundleContentsComponent (): toImmutable, method_1_7002, build
int (ItemStack, int, int): findStackIndexWithinRange, method_1_6861, getInsertionIndex
org.apache.commons.lang3.math.Fraction (org.apache.commons.lang3.math.Fraction, int): getStackedWeight, method_1_6863, getTotalStackOccupancy
org.apache.commons.lang3.math.Fraction (ItemStack): getStackedWeight, method_1_6862, getTotalStackOccupancy
int (ItemIterator, SlotSelector): replaceSlotItems, method_1_6667, copyFrom
void (Consumer<? super StackReference>, SlotSelector): modifySlots, method_1_6665, forEach
int (ItemIterator, SlotSelector): insertNewSlots, method_1_7069, addItemStacks
boolean (int, ItemStack): setItem, method_1_7072, set
boolean (ItemStack): addSlotWithItem, method_1_7067, addItemStack
org.apache.commons.lang3.math.Fraction (org.apache.commons.lang3.math.Fraction, ItemStack): getWeightWithAddedItems, method_1_6864, getOccupancyAfterInsertion
boolean (): canInsertNewSlots, method_1_7068, canAcceptMoreItems
void (): mergeIdenticalStacks, method_1_6865, collapse
Object (): toImmutable, method_1_7002, build
26.2
Names
Fields
Constructors
Methods
26.1.2
Names
Fields
Constructors
Methods
26.1.1
Names
Fields
Constructors
Methods
26.1
Names
Fields
Constructors
Methods
int (ItemStack): getMaxAmountToAdd, method_57436, getMaxAllowed
int (org.apache.commons.lang3.math.Fraction): getMaxAmountToAdd, method_57436, getMaxAllowed
1.21.11_unobfuscated
Names
net.minecraft.world.item.component.BundleContents$Mutable
net.minecraft.class_9276$class_9277
net.minecraft.component.type.BundleContentsComponent$Builder
Fields
List<ItemStack>: items, field_49296, stacks
org.apache.commons.lang3.math.Fraction: weight, field_49297, occupancy
int: selectedItem, field_52593, selectedStackIndex
Constructors
Methods
BundleContentsComponent$Builder (): clearItems, method_59709, clear
int (ItemStack): findStackIndex, method_57434, getInsertionIndex
int (ItemStack): getMaxAmountToAdd, method_57436, getMaxAllowed
int (ItemStack): tryInsert, method_57432, add
int (Slot, PlayerEntity): tryTransfer, method_57431, add
void (int): toggleSelectedItem, method_64662, setSelectedStackIndex
boolean (int): indexIsOutsideAllowedBounds, method_66335, isOutOfBounds
ItemStack (): removeOne, method_57430, removeSelected
org.apache.commons.lang3.math.Fraction (): weight, method_57433, getOccupancy
BundleContentsComponent (): toImmutable, method_57435, build