use of slimeknights.tconstruct.tools.data.material.MaterialStatsDataProvider in project TinkersConstruct by SlimeKnights.
the class TinkerTools method gatherData.
@SubscribeEvent
void gatherData(final GatherDataEvent event) {
DataGenerator generator = event.getGenerator();
if (event.includeServer()) {
generator.addProvider(new ToolsRecipeProvider(generator));
generator.addProvider(new MaterialRecipeProvider(generator));
generator.addProvider(new ModifierRecipeProvider(generator));
MaterialDataProvider materials = new MaterialDataProvider(generator);
generator.addProvider(materials);
generator.addProvider(new MaterialStatsDataProvider(generator, materials));
generator.addProvider(new MaterialTraitsDataProvider(generator, materials));
generator.addProvider(new ToolDefinitionDataProvider(generator));
generator.addProvider(new StationSlotLayoutProvider(generator));
}
if (event.includeClient()) {
ExistingFileHelper existingFileHelper = event.getExistingFileHelper();
TinkerMaterialSpriteProvider materialSprites = new TinkerMaterialSpriteProvider();
TinkerPartSpriteProvider partSprites = new TinkerPartSpriteProvider();
generator.addProvider(new MaterialRenderInfoProvider(generator, materialSprites));
generator.addProvider(new GeneratorPartTextureJsonGenerator(generator, TConstruct.MOD_ID, partSprites));
generator.addProvider(new MaterialPartTextureGenerator(generator, existingFileHelper, partSprites, materialSprites));
}
}
Aggregations