User Tools

Site Tools


tutorial:biomecoloring

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
tutorial:biomecoloring [2019/05/26 16:21]
jamieswhiteshirt Code highlighting
tutorial:biomecoloring [2019/05/28 18:43] (current)
draylar mapping changes
Line 9: Line 9:
     public void onInitializeClient() {     public void onInitializeClient() {
         ColorProviderRegistry.BLOCK.register((block,​ pos, world, layer) -> {         ColorProviderRegistry.BLOCK.register((block,​ pos, world, layer) -> {
-            ​BlockColorMapper ​provider = ColorProviderRegistry.BLOCK.get(Blocks.GRASS);​+            ​BlockColorProvider ​provider = ColorProviderRegistry.BLOCK.get(Blocks.GRASS);​
             return provider == null ? -1 : provider.getColor(block,​ pos, world, layer);             return provider == null ? -1 : provider.getColor(block,​ pos, world, layer);
         }, YOUR_BLOCK_INSTANCE);​         }, YOUR_BLOCK_INSTANCE);​
tutorial/biomecoloring.txt · Last modified: 2019/05/28 18:43 by draylar