net.minecraft.loot

public interface ContainerComponentModifier<T>

net.minecraft.world.level.storage.loot.ContainerComponentManipulator
net.minecraft.class_9666
net.minecraft.loot.ContainerComponentModifier

Method summary

Modifier and TypeMethod
ComponentType<T>
type()
method_59719()
getComponentType()
T
empty()
method_59726()
getDefault()
T
setContents(T component, Stream<ItemStack> newContents)
method_59724(T arg0, Stream<class_1799> arg1)
apply(T component, Stream<ItemStack> contents)
Stream<ItemStack>
getContents(T component)
method_59723(T arg0)
stream(T component)
default void
setContents(ItemStack itemStack, T defaultValue, Stream<ItemStack> newContents)
method_59720(class_1799 arg0, T arg1, Stream<class_1799> arg2)
apply(ItemStack stack, T component, Stream<ItemStack> contents)
default void
setContents(ItemStack itemStack, Stream<ItemStack> newContents)
method_59722(class_1799 arg0, Stream<class_1799> arg1)
apply(ItemStack stack, Stream<ItemStack> contents)
default void
modifyItems(ItemStack itemStack, UnaryOperator<ItemStack> modifier)
method_59721(class_1799 arg0, UnaryOperator<class_1799> arg1)
apply(ItemStack stack, UnaryOperator<ItemStack> contentsOperator)
default ItemStream
getSlots(ItemStack itemStack)
method_76205(class_1799 arg0)
stream(ItemStack stack)
private Stream
lambda$getSlots$2(ItemStack arg0)
method_76206(class_1799 arg0)
method_76206(ItemStack arg0)
private static boolean
lambda$getSlots$1(ItemStack arg0)
method_76207(class_1799 arg0)
method_76207(ItemStack s)
private static ItemStack
lambda$modifyItems$0(UnaryOperator arg0, ItemStack arg1)
method_59725(UnaryOperator arg0, class_1799 arg1)
method_59725(UnaryOperator arg0, ItemStack contentStack)