net.minecraft.world.item.component

public final class BundleContents

implements TooltipComponent

cxe
net.minecraft.world.item.component.BundleContents
net.minecraft.class_9276
net.minecraft.component.type.BundleContentsComponent
net.minecraft.src.C_313255_
net.minecraft.world.item.component.BundleContents

Field summary

Modifier and TypeField
public static final BundleContents
a
EMPTY
field_49289
DEFAULT
f_316266_
public static final com.mojang.serialization.Codec<BundleContents>
b
CODEC
field_49290
CODEC
f_316485_
public static final StreamCodec<RegistryFriendlyByteBuf, BundleContents>
c
STREAM_CODEC
field_49291
PACKET_CODEC
f_316702_
private static final org.apache.commons.lang3.math.Fraction
d
BUNDLE_IN_BUNDLE_WEIGHT
field_49292
NESTED_BUNDLE_OCCUPANCY
f_314974_
private static final int
e
NO_STACK_INDEX
field_49293
ADD_TO_NEW_SLOT
f_314700_
final List<ItemStack>
f
items
field_49294
stacks
f_316519_
final org.apache.commons.lang3.math.Fraction
g
weight
field_49295
occupancy
f_314240_

Constructor summary

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

Method summary

Modifier and TypeMethod
private static org.apache.commons.lang3.math.Fraction
a(List<cur> arg0)
computeContentWeight(List<ItemStack> arg0)
method_57425(List<class_1799> arg0)
calculateOccupancy(List<ItemStack> stacks)
m_319074_(List<C_1391_> p_336274_)
static org.apache.commons.lang3.math.Fraction
a(cur arg0)
getWeight(ItemStack arg0)
method_57423(class_1799 arg0)
getOccupancy(ItemStack stack)
m_323521_(C_1391_ p_334916_)
public ItemStack
a(int arg0)
getItemUnsafe(int arg0)
method_57422(int arg0)
get(int index)
m_321524_(int arg0)
public Stream<ItemStack>
a()
itemCopyStream()
method_59707()
stream()
m_324878_()
public Iterable<ItemStack>
b()
items()
method_57421()
iterate()
m_323607_()
public Iterable<ItemStack>
c()
itemsCopy()
method_59708()
iterateCopy()
m_322107_()
public int
d()
size()
method_57426()
size()
m_321706_()
public org.apache.commons.lang3.math.Fraction
e()
weight()
method_57428()
getOccupancy()
m_320631_()
public boolean
f()
isEmpty()
method_57429()
isEmpty()
m_319610_()