net.minecraft.world.item.component

public final class BundleContents

implements TooltipComponent

czt
net.minecraft.world.item.component.BundleContents
net.minecraft.class_9276
net.minecraft.unmapped.C_rdabfjzm
net.minecraft.component.type.BundleContentsComponent
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
f_jpdcvazc
DEFAULT
DEFAULT
f_316266_
public static final com.mojang.serialization.Codec<BundleContents>
b
CODEC
field_49290
f_yyluumqh
CODEC
CODEC
f_316485_
public static final StreamCodec<RegistryFriendlyByteBuf, BundleContents>
c
STREAM_CODEC
field_49291
f_ehcdowrd
PACKET_CODEC
PACKET_CODEC
f_316702_
private static final org.apache.commons.lang3.math.Fraction
e
BUNDLE_IN_BUNDLE_WEIGHT
field_49292
f_twsofqzh
NESTED_BUNDLE_OCCUPANCY
NESTED_BUNDLE_WEIGHT
f_314974_
private static final int
f
NO_STACK_INDEX
field_49293
f_kbkowtvy
ADD_TO_NEW_SLOT
NO_STACK_INDEX
f_314700_
public static final int
d
NO_SELECTED_ITEM_INDEX
field_52591
f_kyifvpbp
field_52591
f_349164_
final List<ItemStack>
g
items
field_49294
f_pbnmkdnq
stacks
stacks
f_316519_
final org.apache.commons.lang3.math.Fraction
h
weight
field_49295
f_ehknovtd
occupancy
weight
f_314240_
final int
i
selectedItem
field_52592
f_dtfvzywj
selectedStackIndex
f_346565_

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)
m_vyzdvdcc(List<C_sddaxwyk> arg0)
validateOccupancy(List<ItemStack> stacks)
m_354161_(List<C_1391_> p_361886_)
private static org.apache.commons.lang3.math.Fraction
b(List<cxp> arg0)
computeContentWeight(List<ItemStack> arg0)
method_57425(List<class_1799> arg0)
m_nhpzssxx(List<C_sddaxwyk> arg0)
calculateOccupancy(List<ItemStack> stacks)
computeContentWeight(List<ItemStack> stacks)
m_319074_(List<C_1391_> p_336274_)
static org.apache.commons.lang3.math.Fraction
b(cxp arg0)
getWeight(ItemStack arg0)
method_57423(class_1799 arg0)
m_muzauxyd(C_sddaxwyk arg0)
getOccupancy(ItemStack stack)
getWeight(ItemStack stack)
m_323521_(C_1391_ p_334916_)
public static boolean
a(cxp arg0)
canItemBeInBundle(ItemStack arg0)
method_61667(class_1799 arg0)
m_vzoucgoc(C_sddaxwyk arg0)
canBeBundled(ItemStack stack)
m_vzoucgoc(ItemStack stack)
m_356194_(C_1391_ p_369421_)
public int
a()
getNumberOfItemsToShow()
method_61666()
m_ymqptjyp()
getNumberOfStacksShown()
m_353699_()
public ItemStack
a(int arg0)
getItemUnsafe(int arg0)
method_57422(int arg0)
m_ldhjoyix(int arg0)
get(int index)
getStack(int index)
m_321524_(int arg0)
public Stream<ItemStack>
b()
itemCopyStream()
method_59707()
m_snqazrew()
stream()
streamCopiedContents()
m_324878_()
public Iterable<ItemStack>
c()
items()
method_57421()
m_ofbuniku()
iterate()
stream()
m_323607_()
public Iterable<ItemStack>
d()
itemsCopy()
method_59708()
m_xaoywwbi()
iterateCopy()
copyContents()
m_322107_()
public int
e()
size()
method_57426()
m_dpebwpki()
size()
size()
m_321706_()
public org.apache.commons.lang3.math.Fraction
f()
weight()
method_57428()
m_dbhmfful()
getOccupancy()
getWeight()
m_320631_()
public boolean
g()
isEmpty()
method_57429()
m_kfcysouj()
isEmpty()
isEmpty()
m_319610_()
public int
h()
getSelectedItem()
method_61668()
m_tfkyelzu()
getSelectedStackIndex()
m_356300_()
public boolean
i()
hasSelectedItem()
method_61669()
m_zcglojmh()
hasSelectedStack()
m_354923_()