Class StackedContents<T>
java.lang.Object
net.minecraft.world.entity.player.StackedContents<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
(package private) class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private static <T> boolean
anyIngredientMatches
(Iterable<? extends StackedContents.IngredientInfo<T>> pIngredients, T pItem) void
clear()
int
getResultUpperBound
(List<? extends StackedContents.IngredientInfo<T>> pIngredients) getUniqueAvailableIngredientItems
(Iterable<? extends StackedContents.IngredientInfo<T>> pIngredients) (package private) boolean
hasAtLeast
(T pItem, int pAmount) (package private) void
(package private) void
boolean
tryPick
(List<? extends StackedContents.IngredientInfo<T>> pIngredients, int pAmount, StackedContents.Output<T> pOutput) int
tryPickAll
(List<? extends StackedContents.IngredientInfo<T>> pIngredients, int pAmount, StackedContents.Output<T> pOutput)
-
Field Details
-
amounts
-
-
Constructor Details
-
StackedContents
public StackedContents()
-
-
Method Details
-
hasAtLeast
-
take
-
put
-
tryPick
public boolean tryPick(List<? extends StackedContents.IngredientInfo<T>> pIngredients, int pAmount, @Nullable StackedContents.Output<T> pOutput) -
tryPickAll
public int tryPickAll(List<? extends StackedContents.IngredientInfo<T>> pIngredients, int pAmount, @Nullable StackedContents.Output<T> pOutput) -
clear
public void clear() -
account
-
getUniqueAvailableIngredientItems
List<T> getUniqueAvailableIngredientItems(Iterable<? extends StackedContents.IngredientInfo<T>> pIngredients) -
anyIngredientMatches
private static <T> boolean anyIngredientMatches(Iterable<? extends StackedContents.IngredientInfo<T>> pIngredients, T pItem) -
getResultUpperBound
-