Class StackedContents
java.lang.Object
net.minecraft.world.entity.player.StackedContents
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accountSimpleStack(ItemStack p_36467_)
void
accountStack(ItemStack p_36492_)
void
accountStack(ItemStack p_36469_, int p_36470_)
boolean
boolean
void
clear()
static ItemStack
fromStackingIndex(int p_36455_)
int
getBiggestCraftableStack(Recipe<?> p_36472_, int p_36473_, it.unimi.dsi.fastutil.ints.IntList p_36474_)
int
getBiggestCraftableStack(Recipe<?> p_36494_, it.unimi.dsi.fastutil.ints.IntList p_36495_)
static int
getStackingIndex(ItemStack p_36497_)
(package private) boolean
has(int p_36483_)
(package private) void
put(int p_36485_, int p_36486_)
(package private) int
take(int p_36457_, int p_36458_)
-
Field Details
-
EMPTY
private static final int EMPTY- See Also:
- Constant Field Values
-
contents
public final it.unimi.dsi.fastutil.ints.Int2IntMap contents
-
-
Constructor Details
-
StackedContents
public StackedContents()
-
-
Method Details
-
accountSimpleStack
-
accountStack
-
accountStack
-
getStackingIndex
-
has
boolean has(int p_36483_) -
take
int take(int p_36457_, int p_36458_) -
put
void put(int p_36485_, int p_36486_) -
canCraft
-
canCraft
public boolean canCraft(Recipe<?> p_36479_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_36480_, int p_36481_) -
getBiggestCraftableStack
public int getBiggestCraftableStack(Recipe<?> p_36494_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_36495_) -
getBiggestCraftableStack
public int getBiggestCraftableStack(Recipe<?> p_36472_, int p_36473_, @Nullable it.unimi.dsi.fastutil.ints.IntList p_36474_) -
fromStackingIndex
-
clear
public void clear()
-