tutorial:custom_model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:custom_model [2021/01/30 20:19] – [BakedModel methods] Fix indentiation of first @Override i509vcb | tutorial:custom_model [2021/11/24 10:42] – [BakedModel methods] don't return null in getQuads technici4n | ||
---|---|---|---|
Line 71: | Line 71: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Note that the type parameter "'' | ||
==== BakedModel methods ==== | ==== BakedModel methods ==== | ||
Line 77: | Line 79: | ||
@Override | @Override | ||
public List< | public List< | ||
- | | + | // Don't need because we use FabricBakedModel instead. However, it's better to not return null in case some mod decides to call this function. |
+ | return Collections.emptyList(); | ||
} | } | ||
Line 101: | Line 104: | ||
@Override | @Override | ||
- | public Sprite | + | public Sprite |
return SPRITES[1]; // Block break particle, let's use furnace_top | return SPRITES[1]; // Block break particle, let's use furnace_top | ||
} | } | ||
Line 174: | Line 177: | ||
/* ... */ | /* ... */ | ||
" | " | ||
- | "tutorial.path.to.ExampleModClient" | + | "net.fabricmc.example.ExampleModClient" |
] | ] | ||
}, | }, |
tutorial/custom_model.txt · Last modified: 2024/04/27 08:58 by florens