net.minecraft.world.item.component

public final class BundleContents

implements TooltipComponent

czt
net.minecraft.world.item.component.BundleContents
net.minecraft.class_9276
net.minecraft.component.type.BundleContentsComponent
net.minecraft.world.item.component.BundleContents

Field summary

Modifier and TypeField
public static final BundleContents
a
EMPTY
field_49289
DEFAULT
public static final com.mojang.serialization.Codec<BundleContents>
b
CODEC
field_49290
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, BundleContents>
c
STREAM_CODEC
field_49291
PACKET_CODEC
private static final org.apache.commons.lang3.math.Fraction
e
BUNDLE_IN_BUNDLE_WEIGHT
field_49292
NESTED_BUNDLE_OCCUPANCY
private static final int
f
NO_STACK_INDEX
field_49293
ADD_TO_NEW_SLOT
public static final int
d
NO_SELECTED_ITEM_INDEX
field_52591
field_52591
final List<ItemStack>
g
items
field_49294
stacks
final org.apache.commons.lang3.math.Fraction
h
weight
field_49295
occupancy
final int
i
selectedItem
field_52592
selectedStackIndex

Constructor summary

ModifierConstructor
(List<ItemStack> stacks, org.apache.commons.lang3.math.Fraction occupancy, int selectedStackIndex)
public (List<ItemStack> stacks)

Method summary

Modifier and TypeMethod
private static com.mojang.serialization.DataResult<BundleContents>
a(List<cxp> arg0)
checkAndCreate(List<ItemStack> arg0)
method_65061(List<class_1799> arg0)
validateOccupancy(List<ItemStack> stacks)
private static org.apache.commons.lang3.math.Fraction
b(List<cxp> arg0)
computeContentWeight(List<ItemStack> arg0)
method_57425(List<class_1799> arg0)
calculateOccupancy(List<ItemStack> stacks)
static org.apache.commons.lang3.math.Fraction
b(cxp arg0)
getWeight(ItemStack arg0)
method_57423(class_1799 arg0)
getOccupancy(ItemStack stack)
public static boolean
a(cxp arg0)
canItemBeInBundle(ItemStack arg0)
method_61667(class_1799 arg0)
canBeBundled(ItemStack stack)
public int
a()
getNumberOfItemsToShow()
method_61666()
getNumberOfStacksShown()
public ItemStack
a(int arg0)
getItemUnsafe(int arg0)
method_57422(int arg0)
get(int index)
public Stream<ItemStack>
b()
itemCopyStream()
method_59707()
stream()
public Iterable<ItemStack>
c()
items()
method_57421()
iterate()
public Iterable<ItemStack>
d()
itemsCopy()
method_59708()
iterateCopy()
public int
e()
size()
method_57426()
size()
public org.apache.commons.lang3.math.Fraction
f()
weight()
method_57428()
getOccupancy()
public boolean
g()
isEmpty()
method_57429()
isEmpty()
public int
h()
getSelectedItem()
method_61668()
getSelectedStackIndex()
public boolean
i()
hasSelectedItem()
method_61669()
hasSelectedStack()