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 pStack) private int
getMaxAmountToAdd
(ItemStack pStack) private boolean
indexIsOutsideAllowedBounds
(int pIndex) void
toggleSelectedItem
(int pSelectedItem) int
int
tryTransfer
(Slot pSlot, Player pPlayer) 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 pSelectedItem) -
indexIsOutsideAllowedBounds
private boolean indexIsOutsideAllowedBounds(int pIndex) -
removeOne
-
weight
public org.apache.commons.lang3.math.Fraction weight() -
toImmutable
-