User Tools

Site Tools


tutorial:datagen_tags

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:datagen_tags [2022/08/16 18:59] mineblock11tutorial:datagen_tags [2023/06/05 18:13] – Update to new constructor mcrafterzz
Line 8: Line 8:
  
 <code java> <code java>
-private static class MyTagGenerator extends FabricTagProvider<Item> +private static class MyTagGenerator extends ItemTagProvider 
-   public MyTagGenerator(FabricDataGenerator dataGenerator) { +   public MyTagGenerator(FabricDataOutput output, CompletableFuture<WrapperLookup> completableFuture) { 
-       super(dataGeneratorRegistry.ITEM);+        super(outputcompletableFuture);
    }    }
  
Line 49: Line 49:
 </code> </code>
  
-Output from above example:+Output from the example above:
  
 <file javascript smelly_items.json> <file javascript smelly_items.json>
tutorial/datagen_tags.txt · Last modified: 2023/06/05 18:22 by mcrafterzz