Class MinionTestHandler

java.lang.Object
com.binaris.wizardry.core.gametest.MinionTestHandler

public final class MinionTestHandler extends Object
  • 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.MobTestContext with 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 a MinionTestHandler.MobTestContext with 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.