Class MinionTestHandler
java.lang.Object
com.binaris.wizardry.core.gametest.MinionTestHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidminionAttackMobOwnerDamagedByEntity(net.minecraft.gametest.framework.GameTestHelper helper) Creates Wizard (owner) and Wither Skeleton (Wizard minion) entities.static voidminionAttackMobOwnerLastDamagedEntity(net.minecraft.gametest.framework.GameTestHelper helper) Creates aMinionTestHandler.MobTestContextwith Wizard (owner), Wither Skeleton (Wizard minion) and Cow (target) entities.static voidminionCopyMobOwnerTarget(net.minecraft.gametest.framework.GameTestHelper helper) Part of minions tests that are made by a mob (in this case, Wizards)
-
Method Details
-
minionCopyMobOwnerTarget
public static void minionCopyMobOwnerTarget(net.minecraft.gametest.framework.GameTestHelper helper) Part of minions tests that are made by a mob (in this case, Wizards)Creates a
MinionTestHandler.MobTestContextwith Wizard (owner), Wither Skeleton (Wizard minion) and Cow (target) entities. With this test we're checking if the minion is actually copying the target of the owner and attacking it. We can't really check if the minion is killing the target, but we can at least check if it's targeting it, which is a good indication that it's working correctly. -
minionAttackMobOwnerLastDamagedEntity
public static void minionAttackMobOwnerLastDamagedEntity(net.minecraft.gametest.framework.GameTestHelper helper) Creates aMinionTestHandler.MobTestContextwith Wizard (owner), Wither Skeleton (Wizard minion) and Cow (target) entities. With this test we're checking if the minion is targeting the last entity that the owner damaged. We can't really check if the minion is killing the target, but we can at least check if it's targeting it, which is a good indication that it's working correctly. -
minionAttackMobOwnerDamagedByEntity
public static void minionAttackMobOwnerDamagedByEntity(net.minecraft.gametest.framework.GameTestHelper helper) Creates Wizard (owner) and Wither Skeleton (Wizard minion) entities. With this test we're checking if the minion is targeting the last entity that damaged the owner. We can't really check if the minion is killing the target, but we can at least check if it's targeting it, which is a good indication that it's working correctly.
-