--- a/net/minecraft/world/item/component/ItemContainerContents.java
+++ b/net/minecraft/world/item/component/ItemContainerContents.java
@@ -21,15 +_,16 @@
 
 public final class ItemContainerContents implements TooltipProvider {
     private static final int NO_SLOT = -1;
-    private static final int MAX_SIZE = 256;
+    public static final int MAX_SIZE = 256;
     public static final ItemContainerContents EMPTY = new ItemContainerContents(NonNullList.create());
     public static final Codec<ItemContainerContents> CODEC = ItemContainerContents.Slot.CODEC
         .sizeLimitedListOf(256)
         .xmap(ItemContainerContents::fromSlots, ItemContainerContents::asSlots);
     public static final StreamCodec<RegistryFriendlyByteBuf, ItemContainerContents> STREAM_CODEC = ItemStack.OPTIONAL_STREAM_CODEC
         .apply(ByteBufCodecs.list(256))
+        .apply(ByteBufCodecs::increaseDepth) // Paper - Track codec depth
         .map(ItemContainerContents::new, contents -> contents.items);
-    private final NonNullList<ItemStack> items;
+    public final NonNullList<ItemStack> items;
     private final int hashCode;
 
     private ItemContainerContents(NonNullList<ItemStack> items) {
