Class BundleContents.Mutable
java.lang.Object
net.minecraft.world.item.component.BundleContents.Mutable
- Enclosing class:
BundleContents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private org.apache.commons.lang3.math.Fraction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
findStackIndex
(ItemStack p_331941_) private int
getMaxAmountToAdd
(ItemStack p_330527_) private boolean
indexIsOutsideAllowedBounds
(int p_393944_) void
toggleSelectedItem
(int p_360571_) int
int
tryTransfer
(Slot p_330834_, Player p_331924_) org.apache.commons.lang3.math.Fraction
weight()
-
Field Details
-
items
-
weight
private org.apache.commons.lang3.math.Fraction weight -
selectedItem
private int selectedItem
-
-
Constructor Details
-
Mutable
-
-
Method Details
-
clearItems
-
findStackIndex
-
getMaxAmountToAdd
-
tryInsert
-
tryTransfer
-
toggleSelectedItem
public void toggleSelectedItem(int p_360571_) -
indexIsOutsideAllowedBounds
private boolean indexIsOutsideAllowedBounds(int p_393944_) -
removeOne
-
weight
public org.apache.commons.lang3.math.Fraction weight() -
toImmutable
-