diff --git a/docs/curios/inventory/basic-inventory.md b/docs/curios/inventory/basic-inventory.md index ee997c7..4d32e16 100644 --- a/docs/curios/inventory/basic-inventory.md +++ b/docs/curios/inventory/basic-inventory.md @@ -52,12 +52,12 @@ whether the developer wants to access all of the slot inventories or just a part ### Accessing the entire inventory -The entire Curios inventory exists as a `Map`, with the slot type identifiers acting as each -key and the `ICurioStackHandler` acting as the inventory attached to the slot type. To access this, the `getCurios` +The entire Curios inventory exists as a `Map`, with the slot type identifiers acting as each +key and the `ICurioStacksHandler` acting as the inventory attached to the slot type. To access this, the `getCurios` method can be used: ```java -Map curios = curiosInventory.getCurios(); +Map curios = curiosInventory.getCurios(); ``` :::caution This returns an **unmodifiable** map so attempts to change the structure of the map directly through this method, such @@ -76,7 +76,7 @@ curios.forEach((identifier, slotInventory) -> { Or developers can access a particular sub-inventory, such as a slot type with the `"ring"` identifier: ```java -ICurioStackHandler slotInventory = curios.get("ring"); +ICurioStacksHandler slotInventory = curios.get("ring"); // null check to ensure that the slot inventory exists if (slotInventory != null) { @@ -93,7 +93,7 @@ In order to access a particular inventory for slot type, developers can either a in the preceding section or skip straight to a sub-inventory for that slot type: ```java -Optional slotInventory = curiosInventory.getStacksHandler("ring"); +Optional slotInventory = curiosInventory.getStacksHandler("ring"); ``` The above code will retrive an `Optional` for the slot inventory with the `"ring"` identifier passed into the