Search in sources :

Example 1 with ExtraMaterialStats

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);
}
Also used : HandleMaterialStats(slimeknights.tconstruct.tools.stats.HandleMaterialStats) HeadMaterialStats(slimeknights.tconstruct.tools.stats.HeadMaterialStats) ExtraMaterialStats(slimeknights.tconstruct.tools.stats.ExtraMaterialStats) BaseMcTest(slimeknights.tconstruct.test.BaseMcTest) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 BaseMcTest (slimeknights.tconstruct.test.BaseMcTest)1 ExtraMaterialStats (slimeknights.tconstruct.tools.stats.ExtraMaterialStats)1 HandleMaterialStats (slimeknights.tconstruct.tools.stats.HandleMaterialStats)1 HeadMaterialStats (slimeknights.tconstruct.tools.stats.HeadMaterialStats)1