User Tools

Site Tools


tutorial:datagen_buckets

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:datagen_buckets [2023/06/21 10:27] – [Setting up the Bucket class] tinypandastutorial:datagen_buckets [2023/06/21 17:30] (current) – [Client registration] tinypandas
Line 108: Line 108:
  @Override  @Override
  public void onInitializeClient() {  public void onInitializeClient() {
- ColorProviderRegistry.ITEM.register((stack, tintIndex) -> ((CustomBucket) ExampleMod.RED_WATER_BUCKET).getColor(tintIndex), ExampleMod.RED_WATER_BUCKET); + ColorProviderRegistry.ITEM.register((stack, tintIndex) -> ((CustomBucket) stack.getItem()).getColor(tintIndex), 
- ColorProviderRegistry.ITEM.register((stacktintIndex) -> ((CustomBucket) ExampleMod.GREEN_WATER_BUCKET).getColor(tintIndex), ExampleMod.GREEN_WATER_BUCKET); + ExampleMod.RED_WATER_BUCKET, ExampleMod.GREEN_WATER_BUCKET, ExampleMod.BLUE_WATER_BUCKET);
- ColorProviderRegistry.ITEM.register((stack, tintIndex) -> ((CustomBucket) ExampleMod.BLUE_WATER_BUCKET).getColor(tintIndex), ExampleMod.BLUE_WATER_BUCKET);+
  }  }
 </code> </code>
tutorial/datagen_buckets.1687343270.txt.gz · Last modified: 2023/06/21 10:27 by tinypandas