use of slimeknights.tconstruct.tools.stats.ExtraMaterialStats in project TinkersConstruct by SlimeKnights.
the class StatsBuilderTest method buildMiningSpeed_testHandleMiningSpeed.
@Test
void buildMiningSpeed_testHandleMiningSpeed() {
HeadMaterialStats statsHead = new HeadMaterialStats(0, 2.0f, Tiers.WOOD, 0);
HandleMaterialStats statsHandle = new HandleMaterialStats(0, 0.5f, 0, 0);
ExtraMaterialStats statsExtra = ExtraMaterialStats.DEFAULT;
MeleeHarvestToolStatsBuilder builder = new MeleeHarvestToolStatsBuilder(ToolDefinitionData.EMPTY, ImmutableList.of(statsHead), ImmutableList.of(statsHandle), ImmutableList.of(statsExtra));
assertThat(builder.buildMiningSpeed()).isEqualTo(1.0f);
}
Aggregations