tutorial:datagen_model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:datagen_model [2022/10/26 07:03] – [Strict Validation] daomephsta | tutorial:datagen_model [2023/06/05 17:43] (current) – Change to FabricDataOutput mcrafterzz | ||
---|---|---|---|
Line 8: | Line 8: | ||
<code java> | <code java> | ||
private static class MyModelGenerator extends FabricModelProvider { | private static class MyModelGenerator extends FabricModelProvider { | ||
- | private MyModelGenerator(FabricDataGenerator | + | private MyModelGenerator(FabricDataOutput |
super(generator); | super(generator); | ||
} | } | ||
Line 38: | Line 38: | ||
<code java> | <code java> | ||
- | public static Block SIMPLE_BLOCK = Registry.register(Registry.BLOCK, new Identifier(" | + | public static Block SIMPLE_BLOCK = Registry.register(Registries.BLOCK, new Identifier(" |
- | public static BlockItem SIMPLE_BLOCK_ITEM = Registry.register(Registry.ITEM, ..., new BlockItem(SIMPLE_BLOCK, | + | public static BlockItem SIMPLE_BLOCK_ITEM = Registry.register(Registries.ITEM, ..., new BlockItem(SIMPLE_BLOCK, |
// ... | // ... | ||
Line 61: | Line 61: | ||
<code java> | <code java> | ||
- | public static Block SIMPLE_BLOCK = Registry.register(Registry.BLOCK, new Identifier(" | + | public static Block SIMPLE_BLOCK = Registry.register(Registries.BLOCK, new Identifier(" |
- | public static BlockItem SIMPLE_BLOCK_ITEM = Registry.register(Registry.ITEM, ..., new BlockItem(SIMPLE_BLOCK, | + | public static BlockItem SIMPLE_BLOCK_ITEM = Registry.register(Registries.ITEM, ..., new BlockItem(SIMPLE_BLOCK, |
// ... | // ... | ||
Line 83: | Line 83: | ||
@Override | @Override | ||
- | public void onInitialize() | + | public void onInitialize() { |
- | { | + | Registry.register(Registries.BLOCK, new Identifier(" |
- | Registry.register(Registry.BLOCK, new Identifier(" | + | |
} | } | ||
</ | </ | ||
Line 93: | Line 92: | ||
<code java> | <code java> | ||
private static class MyModelGenerator extends FabricModelProvider { | private static class MyModelGenerator extends FabricModelProvider { | ||
- | private MyModelGenerator(FabricDataGenerator | + | private MyModelGenerator(FabricDataOutput |
super(generator); | super(generator); | ||
} | } |
tutorial/datagen_model.1666767782.txt.gz · Last modified: 2022/10/26 07:03 by daomephsta