Class TestingUtil

java.lang.Object
vazkii.botania.test.TestingUtil

public class TestingUtil extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.block.entity.BlockEntity
    assertAnyBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos)
     
    static void
    assertAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, boolean value, Supplier<String> message)
     
    static <T extends net.minecraft.world.level.block.entity.BlockEntity>
    T
    assertBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, Class<T> classs)
     
    static <T extends net.minecraft.world.level.block.entity.BlockEntity>
    T
    assertBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, net.minecraft.world.level.block.entity.BlockEntityType<T> type)
     
    static void
    assertEquals(@Nullable Object a, @Nullable Object b)
     
    static void
    assertEquals(@Nullable Object a, @Nullable Object b, Supplier<String> message)
     
    static void
    assertEqualsAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, @Nullable Object a, @Nullable Object b)
     
    static void
    assertEqualsAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, @Nullable Object a, @Nullable Object b, Supplier<String> message)
     
    static void
    assertThat(boolean value, Supplier<String> message)
     
    static void
    bindForceRelayTarget(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relayPos, net.minecraft.core.BlockPos targetPos)
     
    static void
    bindWithWandOfTheForest(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos first, net.minecraft.core.BlockPos second)
     
    static @Nullable net.minecraft.core.BlockPos
    getBoundForceRelayTarget(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relayPos)
     
    static void
    setUpSpreaderAndCompositeLens(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item firstLensType, net.minecraft.world.item.Item secondLensType, net.minecraft.core.BlockPos spreaderPos, net.minecraft.core.BlockPos spreaderTargetPos)
     
    static void
    throwPositionedAssertion(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, Supplier<String> msg)
     
    static void
    useItemOn(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TestingUtil

      public TestingUtil()
  • Method Details

    • throwPositionedAssertion

      @Contract("_,_,_ -> fail") public static void throwPositionedAssertion(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, Supplier<String> msg)
    • assertThat

      @Contract("false,_ -> fail") public static void assertThat(boolean value, Supplier<String> message)
    • assertAt

      @Contract("_,_,false,_ -> fail") public static void assertAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, boolean value, Supplier<String> message)
    • assertEquals

      public static void assertEquals(@Nullable @Nullable Object a, @Nullable @Nullable Object b)
    • assertEquals

      public static void assertEquals(@Nullable @Nullable Object a, @Nullable @Nullable Object b, Supplier<String> message)
    • assertEqualsAt

      public static void assertEqualsAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, @Nullable @Nullable Object a, @Nullable @Nullable Object b)
    • assertEqualsAt

      public static void assertEqualsAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, @Nullable @Nullable Object a, @Nullable @Nullable Object b, Supplier<String> message)
    • assertBlockEntity

      public static <T extends net.minecraft.world.level.block.entity.BlockEntity> T assertBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, net.minecraft.world.level.block.entity.BlockEntityType<T> type)
    • assertBlockEntity

      public static <T extends net.minecraft.world.level.block.entity.BlockEntity> T assertBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, Class<T> classs)
    • assertAnyBlockEntity

      public static net.minecraft.world.level.block.entity.BlockEntity assertAnyBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos)
    • useItemOn

      public static void useItemOn(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos)
    • bindWithWandOfTheForest

      public static void bindWithWandOfTheForest(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos first, net.minecraft.core.BlockPos second)
    • bindForceRelayTarget

      public static void bindForceRelayTarget(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relayPos, net.minecraft.core.BlockPos targetPos)
    • getBoundForceRelayTarget

      @Nullable public static @Nullable net.minecraft.core.BlockPos getBoundForceRelayTarget(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relayPos)
    • setUpSpreaderAndCompositeLens

      public static void setUpSpreaderAndCompositeLens(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.Item firstLensType, net.minecraft.world.item.Item secondLensType, net.minecraft.core.BlockPos spreaderPos, net.minecraft.core.BlockPos spreaderTargetPos)