tutorial:colorprovider
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:colorprovider [2019/10/25 17:47] – draylar | tutorial:colorprovider [2019/10/25 17:48] – draylar | ||
---|---|---|---|
Line 17: | Line 17: | ||
Remember that the color provider is a client-side mechanic. Make sure to put any code related to it inside a client initializer. | Remember that the color provider is a client-side mechanic. Make sure to put any code related to it inside a client initializer. | ||
- | ==== Registering a Block Color Provider ==== | + | ===== Registering a Block Color Provider |
To register a block to the block color provider, you'll need to use Fabric' | To register a block to the block color provider, you'll need to use Fabric' | ||
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
Line 58: | Line 58: | ||
{{https:// | {{https:// | ||
- | ==== Registering an Item Color Provider ==== | + | ===== Registering an Item Color Provider |
Items are similar; the difference is the context provided. Instead of having a state, world, or position, you have access to the '' | Items are similar; the difference is the context provided. Instead of having a state, world, or position, you have access to the '' | ||
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" |
tutorial/colorprovider.txt · Last modified: 2023/11/18 08:37 by solidblock