8000 Fixed possible typo by replacing ICurioStackHandler with ICurioStacksHandler by 3p1cw0mb4t · Pull Request #2 · illusivesoulworks/docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed possible typo by replacing ICurioStackHandler with ICurioStacksHandler #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/curios/inventory/basic-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, ICurioStackHandler>`, 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<String, ICurioStacksHandler>`, 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<String, ICurioStackHandler> curios = curiosInventory.getCurios();
Map<String, ICurioStacksHandler> curios = curiosInventory.getCurios();
```
:::caution
This returns an **unmodifiable** map so attempts to change the structure of the map directly through this method, such
Expand All @@ -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) {
Expand All @@ -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<ICurioStackHandler> slotInventory = curiosInventory.getStacksHandler("ring");
Optional<ICurioStacksHandler> slotInventory = curiosInventory.getStacksHandler("ring");
```

The above code will retrive an `Optional` for the slot inventory with the `"ring"` identifier passed into the
Expand Down
0