Interface ContainerComponentManipulator<T>
public interface ContainerComponentManipulator<T>
-
Method Summary
Modifier and TypeMethodDescriptionempty()getContents(T contents) default voidmodifyItems(ItemStack stack, UnaryOperator<ItemStack> modifier) default voidsetContents(ItemStack stack, Stream<ItemStack> items) default voidsetContents(ItemStack stack, T contents, Stream<ItemStack> items) setContents(T contents, Stream<ItemStack> items) type()
-
Method Details
-
type
DataComponentType<T> type() -
empty
T empty() -
setContents
-
getContents
-
setContents
-
setContents
-
modifyItems
-