net.minecraft.component.type

public class BundleContentsComponent$Builder

net.minecraft.world.item.component.BundleContents$Mutable
net.minecraft.class_9276$class_9277
net.minecraft.component.type.BundleContentsComponent$Builder

Field summary

Modifier and TypeField
private final List<ItemStack>
items
field_49296
stacks
private org.apache.commons.lang3.math.Fraction
weight
field_49297
occupancy
private int
selectedItem
field_52593
selectedStackIndex

Constructor summary

ModifierConstructor
public (BundleContentsComponent base)

Method summary

Modifier and TypeMethod
public BundleContentsComponent$Builder
clearItems()
method_59709()
clear()
private int
findStackIndex(ItemStack itemsToAdd)
method_57434(class_1799 arg0)
getInsertionIndex(ItemStack stack)
private int
getMaxAmountToAdd(ItemStack item)
method_57436(class_1799 arg0)
getMaxAllowed(ItemStack stack)
public int
tryInsert(ItemStack itemsToAdd)
method_57432(class_1799 arg0)
add(ItemStack stack)
public int
tryTransfer(Slot slot, Player player)
method_57431(class_1735 arg0, class_1657 arg1)
add(Slot slot, PlayerEntity player)
public void
toggleSelectedItem(int selectedItem)
method_64662(int arg0)
setSelectedStackIndex(int selectedStackIndex)
private boolean
indexIsOutsideAllowedBounds(int selectedItem)
method_66335(int arg0)
isOutOfBounds(int index)
public ItemStack
removeOne()
method_57430()
removeSelected()
public org.apache.commons.lang3.math.Fraction
weight()
method_57433()
getOccupancy()
public BundleContentsComponent
toImmutable()
method_57435()
build()