Class BundleContents.Mutable
java.lang.Object
net.minecraft.world.item.component.BundleContents.Mutable
- Enclosing class:
BundleContents
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate org.apache.commons.lang3.math.Fraction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intfindStackIndex(ItemStack pStack) private intgetMaxAmountToAdd(ItemStack pStack) private booleanindexIsOutsideAllowedBounds(int pIndex) voidtoggleSelectedItem(int pSelectedItem) intinttryTransfer(Slot pSlot, Player pPlayer) org.apache.commons.lang3.math.Fractionweight()
-
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
-