Class AWTestHandler
java.lang.Object
com.binaris.wizardry.core.gametest.AWTestHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplySpellsToWand(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand, Spell... spells) Applies the given spells to the wandstatic voidcannotExceedBlankScrollLimit(net.minecraft.gametest.framework.GameTestHelper helper) Tests that blank scrolls cannot exceed the stack limit of 16 in the workbench center slot.static voidcannotExceedSpellBookLimit(net.minecraft.gametest.framework.GameTestHelper helper, Spell spell) Tests that spell books cannot exceed the stack limit of 1 per slot in the workbench.static voidcannotExceedUpgradeLimit(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item upgradeItem) Tests that upgrade items cannot exceed the stack limit of 1 in the upgrade slot.static voidcannotUpgradeMaxedArmor(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item armor, net.minecraft.world.item.Item upgradeItem) Tests that maxed out wizard armor cannot be upgraded further.static voidcanUpgradeToNextTier(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand) static voidputSpellOnBlankScroll(net.minecraft.gametest.framework.GameTestHelper helper, Spell spell) Puts the given spell into a new spell scroll using a blank scrollstatic voidputSpellOnScrollFilled(net.minecraft.gametest.framework.GameTestHelper helper) Try to put a spell into a not blank scroll, should be falsestatic voidrepairWand(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand, net.minecraft.world.item.Item crystal) Tests repairing a damaged wand using 1 crystal.static voidupgradeNormalArmor(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item armor, net.minecraft.world.item.Item upgradeItem) Tests upgrading normal wizard armor to a higher tier using an upgrade item.static voidupgradeWandNextTierNBT(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand)
-
Method Details
-
applySpellsToWand
public static void applySpellsToWand(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand, Spell... spells) Applies the given spells to the wand -
upgradeWandNextTierNBT
public static void upgradeWandNextTierNBT(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand) Different tocanUpgradeToNextTier(net.minecraft.gametest.framework.GameTestHelper, net.minecraft.world.item.Item).Checks if the given wand can be upgraded to the next tier (in case if it's not a master wand) based on a NBT arcane tome
-
canUpgradeToNextTier
public static void canUpgradeToNextTier(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand) Different toupgradeWandNextTierNBT(net.minecraft.gametest.framework.GameTestHelper, net.minecraft.world.item.Item).Checks if the given wand can be upgraded to the next tier (in case if it's not a master wand) based on an item instance based arcane tome.
-
putSpellOnBlankScroll
public static void putSpellOnBlankScroll(net.minecraft.gametest.framework.GameTestHelper helper, Spell spell) Puts the given spell into a new spell scroll using a blank scroll -
putSpellOnScrollFilled
public static void putSpellOnScrollFilled(net.minecraft.gametest.framework.GameTestHelper helper) Try to put a spell into a not blank scroll, should be false -
upgradeNormalArmor
public static void upgradeNormalArmor(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item armor, net.minecraft.world.item.Item upgradeItem) Tests upgrading normal wizard armor to a higher tier using an upgrade item. -
cannotUpgradeMaxedArmor
public static void cannotUpgradeMaxedArmor(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item armor, net.minecraft.world.item.Item upgradeItem) Tests that maxed out wizard armor cannot be upgraded further. -
repairWand
public static void repairWand(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item wand, net.minecraft.world.item.Item crystal) Tests repairing a damaged wand using 1 crystal. -
cannotExceedBlankScrollLimit
public static void cannotExceedBlankScrollLimit(net.minecraft.gametest.framework.GameTestHelper helper) Tests that blank scrolls cannot exceed the stack limit of 16 in the workbench center slot. -
cannotExceedSpellBookLimit
public static void cannotExceedSpellBookLimit(net.minecraft.gametest.framework.GameTestHelper helper, Spell spell) Tests that spell books cannot exceed the stack limit of 1 per slot in the workbench. -
cannotExceedUpgradeLimit
public static void cannotExceedUpgradeLimit(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item upgradeItem) Tests that upgrade items cannot exceed the stack limit of 1 in the upgrade slot.
-