Package vazkii.botania.test
Class TestingUtil
java.lang.Object
vazkii.botania.test.TestingUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.block.entity.BlockEntityassertAnyBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos) static voidassertAt(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>
TassertBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, Class<T> classs) static <T extends net.minecraft.world.level.block.entity.BlockEntity>
TassertBlockEntity(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, net.minecraft.world.level.block.entity.BlockEntityType<T> type) static voidassertEquals(@Nullable Object a, @Nullable Object b) static voidassertEquals(@Nullable Object a, @Nullable Object b, Supplier<String> message) static voidassertEqualsAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, @Nullable Object a, @Nullable Object b) static voidassertEqualsAt(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, @Nullable Object a, @Nullable Object b, Supplier<String> message) static voidassertThat(boolean value, Supplier<String> message) static voidbindForceRelayTarget(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relayPos, net.minecraft.core.BlockPos targetPos) static voidbindWithWandOfTheForest(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos first, net.minecraft.core.BlockPos second) static @Nullable net.minecraft.core.BlockPosgetBoundForceRelayTarget(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relayPos) static voidsetUpSpreaderAndCompositeLens(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 voidthrowPositionedAssertion(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.core.BlockPos relativePos, Supplier<String> msg) static voiduseItemOn(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.BlockPos pos)
-
Field Details
-
EMPTY_STRUCTURE
- See Also:
-
-
Constructor Details
-
TestingUtil
public TestingUtil()
-
-
Method Details
-
throwPositionedAssertion
-
assertThat
-
assertAt
-
assertEquals
-
assertEquals
-
assertEqualsAt
-
assertEqualsAt
-
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)
-