Interface ContainerComponentManipulator<T>
public interface ContainerComponentManipulator<T>
-
Method Summary
Modifier and TypeMethodDescriptionempty()getContents(T component) default SlotCollectiondefault voidmodifyItems(ItemStack itemStack, UnaryOperator<ItemStack> modifier) default voidsetContents(ItemStack itemStack, Stream<ItemStack> newContents) default voidsetContents(ItemStack itemStack, T defaultValue, Stream<ItemStack> newContents) setContents(T component, Stream<ItemStack> newContents) type()
-
Method Details
-
type
DataComponentType<T> type() -
empty
T empty() -
setContents
-
getContents
-
setContents
-
setContents
-
modifyItems
-
getSlots
-