Skip to content

Commit

Permalink
Update readme (x3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxydog committed Jun 11, 2024
1 parent f1612ec commit 2efd301
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ Lodestone also provides an abstract class and two annotations for automatic regi
```java
public final class ItemLoader extends AutoLoader {

@LoadingPriority(-1) // Controls the loading order. In this case, this loads last.
public static final LoadedItem ITEM_1 = new LoadedItem("item_1", new Settings());
public static final LoadedItem ITEM_2 = new LoadedItem("item_2", new Settings());
public static final LoadedItem ITEM_3 = new LoadedItem("item_3", new Settings());
public static final LoadedItem ITEM_4 = new LoadedItem("item_4", new Settings());
public static final LoadedItem ITEM_5 = new LoadedItem("item_5", new Settings());

@IgnoreLoading({ }) // Prevents this value from being loaded.
public static final LoadedItem NULL = null;

@Override
public Identifier getLoaderId() {
return Identifier.of("your_mod", "items");
Expand Down

0 comments on commit 2efd301

Please sign in to comment.