Class BundleContents
java.lang.Object
net.minecraft.world.item.component.BundleContents
- All Implemented Interfaces:
TooltipComponent
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.commons.lang3.math.Fraction
static final com.mojang.serialization.Codec
<BundleContents> static final BundleContents
private static final int
static final StreamCodec
<RegistryFriendlyByteBuf, BundleContents> (package private) final org.apache.commons.lang3.math.Fraction
-
Constructor Summary
ConstructorDescriptionBundleContents
(List<ItemStack> p_334686_) BundleContents
(List<ItemStack> p_331924_, org.apache.commons.lang3.math.Fraction p_333046_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.commons.lang3.math.Fraction
computeContentWeight
(List<ItemStack> p_336274_) boolean
getItemUnsafe
(int p_329557_) (package private) static org.apache.commons.lang3.math.Fraction
int
hashCode()
boolean
isEmpty()
items()
int
size()
toString()
org.apache.commons.lang3.math.Fraction
weight()
-
Field Details
-
EMPTY
-
CODEC
-
STREAM_CODEC
-
BUNDLE_IN_BUNDLE_WEIGHT
private static final org.apache.commons.lang3.math.Fraction BUNDLE_IN_BUNDLE_WEIGHT -
NO_STACK_INDEX
private static final int NO_STACK_INDEX- See Also:
-
items
-
weight
final org.apache.commons.lang3.math.Fraction weight
-
-
Constructor Details
-
BundleContents
-
BundleContents
-
-
Method Details
-
computeContentWeight
-
getWeight
-
getItemUnsafe
-
itemCopyStream
-
items
-
itemsCopy
-
size
public int size() -
weight
public org.apache.commons.lang3.math.Fraction weight() -
isEmpty
public boolean isEmpty() -
equals
-
hashCode
public int hashCode() -
toString
-