net.minecraft.gametest.framework

public class GameTestHelper

sy
net.minecraft.gametest.framework.GameTestHelper

Field summary

Modifier and TypeField
private final GameTestInfo
a
testInfo
private boolean
b
finalCheckAdded

Constructor summary

ModifierConstructor
public (GameTestInfo arg0)

Method summary

Modifier and TypeMethod
public GameTestAssertException
a(xo arg0)
assertionException(Component arg0)
public GameTestAssertException
a(String arg0, Object... arg1)
assertionException(String arg0, Object... arg1)
public GameTestAssertPosException
a(jb arg0, xo arg1)
assertionException(BlockPos arg0, Component arg1)
public GameTestAssertPosException
a(jb arg0, String arg1, Object... arg2)
assertionException(BlockPos arg0, String arg1, Object... arg2)
public ServerLevel
a()
getLevel()
public BlockState
a(jb arg0)
getBlockState(BlockPos arg0)
public <T extends BlockEntity> T
a(jb arg0, Class<T> arg1)
getBlockEntity(BlockPos arg0, Class<T> arg1)
public void
b()
killAllEntities()
public void
a(Class<? extends bzm> arg0)
killAllEntitiesOfClass(Class<? extends Entity> arg0)
public ItemEntity
a(dcr arg0, fis arg1)
spawnItem(Item arg0, Vec3 arg1)
public ItemEntity
a(dcr arg0, float arg1, float arg2, float arg3)
spawnItem(Item arg0, float arg1, float arg2, float arg3)
public ItemEntity
a(dcr arg0, jb arg1)
spawnItem(Item arg0, BlockPos arg1)
public <E extends Entity> E
a(bzv<E> arg0, jb arg1)
spawn(EntityType<E> arg0, BlockPos arg1)
public <E extends Entity> E
a(bzv<E> arg0, fis arg1)
spawn(EntityType<E> arg0, Vec3 arg1)
public void
a(bzm arg0, byb arg1, float arg2)
hurt(Entity arg0, DamageSource arg1, float arg2)
public void
a(bzm arg0)
kill(Entity arg0)
public <E extends Entity> E
a(bzv<E> arg0)
findOneEntity(EntityType<E> arg0)
public <E extends Entity> E
a(bzv<E> arg0, int arg1, int arg2, int arg3, double arg4)
findClosestEntity(EntityType<E> arg0, int arg1, int arg2, int arg3, double arg4)
public <E extends Entity> List<E>
b(bzv<E> arg0, int arg1, int arg2, int arg3, double arg4)
findEntities(EntityType<E> arg0, int arg1, int arg2, int arg3, double arg4)
public <E extends Entity> List<E>
a(bzv<E> arg0, fis arg1, double arg2)
findEntities(EntityType<E> arg0, Vec3 arg1, double arg2)
public <E extends Entity> E
a(bzv<E> arg0, int arg1, int arg2, int arg3)
spawn(EntityType<E> arg0, int arg1, int arg2, int arg3)
public <E extends Entity> E
a(bzv<E> arg0, float arg1, float arg2, float arg3)
spawn(EntityType<E> arg0, float arg1, float arg2, float arg3)
public <E extends Mob> E
b(bzv<E> arg0, jb arg1)
spawnWithNoFreeWill(EntityType<E> arg0, BlockPos arg1)
public <E extends Mob> E
b(bzv<E> arg0, int arg1, int arg2, int arg3)
spawnWithNoFreeWill(EntityType<E> arg0, int arg1, int arg2, int arg3)
public <E extends Mob> E
b(bzv<E> arg0, fis arg1)
spawnWithNoFreeWill(EntityType<E> arg0, Vec3 arg1)
public <E extends Mob> E
b(bzv<E> arg0, float arg1, float arg2, float arg3)
spawnWithNoFreeWill(EntityType<E> arg0, float arg1, float arg2, float arg3)
public void
a(cao arg0, float arg1, float arg2, float arg3)
moveTo(Mob arg0, float arg1, float arg2, float arg3)
public GameTestSequence
a(cao arg0, jb arg1, float arg2)
walkTo(Mob arg0, BlockPos arg1, float arg2)
public void
a(int arg0, int arg1, int arg2)
pressButton(int arg0, int arg1, int arg2)
public void
b(jb arg0)
pressButton(BlockPos arg0)
public void
c(jb arg0)
useBlock(BlockPos arg0)
public void
a(jb arg0, cut arg1)
useBlock(BlockPos arg0, Player arg1)
public void
a(jb arg0, cut arg1, fio arg2)
useBlock(BlockPos arg0, Player arg1, BlockHitResult arg2)
public LivingEntity
a(cam arg0)
makeAboutToDrown(LivingEntity arg0)
public LivingEntity
b(cam arg0)
withLowHealth(LivingEntity arg0)
public Player
a(dmr arg0)
makeMockPlayer(GameType arg0)
public ServerPlayer
c()
makeMockServerPlayerInLevel()
public void
b(int arg0, int arg1, int arg2)
pullLever(int arg0, int arg1, int arg2)
public void
d(jb arg0)
pullLever(BlockPos arg0)
public void
a(jb arg0, long arg1)
pulseRedstone(BlockPos arg0, long arg1)
public void
e(jb arg0)
destroyBlock(BlockPos arg0)
public void
a(int arg0, int arg1, int arg2, dpz arg3)
setBlock(int arg0, int arg1, int arg2, Block arg3)
public void
a(int arg0, int arg1, int arg2, eeb arg3)
setBlock(int arg0, int arg1, int arg2, BlockState arg3)
public void
a(jb arg0, dpz arg1)
setBlock(BlockPos arg0, Block arg1)
public void
a(jb arg0, eeb arg1)
setBlock(BlockPos arg0, BlockState arg1)
public void
d()
setNight()
public void
a(int arg0)
setDayTime(int arg0)
public void
a(dpz arg0, int arg1, int arg2, int arg3)
assertBlockPresent(Block arg0, int arg1, int arg2, int arg3)
public void
a(dpz arg0, jb arg1)
assertBlockPresent(Block arg0, BlockPos arg1)
public void
b(dpz arg0, int arg1, int arg2, int arg3)
assertBlockNotPresent(Block arg0, int arg1, int arg2, int arg3)
public void
b(dpz arg0, jb arg1)
assertBlockNotPresent(Block arg0, BlockPos arg1)
public void
a(bae<dpz> arg0, jb arg1)
assertBlockTag(TagKey<Block> arg0, BlockPos arg1)
public void
c(dpz arg0, int arg1, int arg2, int arg3)
succeedWhenBlockPresent(Block arg0, int arg1, int arg2, int arg3)
public void
c(dpz arg0, jb arg1)
succeedWhenBlockPresent(Block arg0, BlockPos arg1)
public void
a(jb arg0, Predicate<dpz> arg1, Function<dpz, xo> arg2)
assertBlock(BlockPos arg0, Predicate<Block> arg1, Function<Block, Component> arg2)
public <T extends Comparable<T>> void
a(jb arg0, efe<T> arg1, T arg2)
assertBlockProperty(BlockPos arg0, Property<T> arg1, T arg2)
public <T extends Comparable<T>> void
a(jb arg0, efe<T> arg1, Predicate<T> arg2, xo arg3)
assertBlockProperty(BlockPos arg0, Property<T> arg1, Predicate<T> arg2, Component arg3)
public void
b(jb arg0, eeb arg1)
assertBlockState(BlockPos arg0, BlockState arg1)
public void
b(jb arg0, Predicate<eeb> arg1, Function<eeb, xo> arg2)
assertBlockState(BlockPos arg0, Predicate<BlockState> arg1, Function<BlockState, Component> arg2)
public <T extends BlockEntity> void
a(jb arg0, Class<T> arg1, Predicate<T> arg2, Supplier<xo> arg3)
assertBlockEntityData(BlockPos arg0, Class<T> arg1, Predicate<T> arg2, Supplier<Component> arg3)
public void
a(jb arg0, jh arg1, IntPredicate arg2, Supplier<xo> arg3)
assertRedstoneSignal(BlockPos arg0, Direction arg1, IntPredicate arg2, Supplier<Component> arg3)
public void
b(bzv<?> arg0)
assertEntityPresent(EntityType<?> arg0)
public void
c(bzv<?> arg0, int arg1, int arg2, int arg3)
assertEntityPresent(EntityType<?> arg0, int arg1, int arg2, int arg3)
public void
c(bzv<?> arg0, jb arg1)
assertEntityPresent(EntityType<?> arg0, BlockPos arg1)
public void
a(bzv<?> arg0, fin arg1)
assertEntityPresent(EntityType<?> arg0, AABB arg1)
public void
a(bzv<?> arg0, int arg1)
assertEntitiesPresent(EntityType<?> arg0, int arg1)
public void
a(bzv<?> arg0, jb arg1, int arg2, double arg3)
assertEntitiesPresent(EntityType<?> arg0, BlockPos arg1, int arg2, double arg3)
public void
a(bzv<?> arg0, jb arg1, double arg2)
assertEntityPresent(EntityType<?> arg0, BlockPos arg1, double arg2)
public <T extends Entity> List<T>
b(bzv<T> arg0, jb arg1, double arg2)
getEntities(EntityType<T> arg0, BlockPos arg1, double arg2)
public <T extends Entity> List<T>
c(bzv<T> arg0)
getEntities(EntityType<T> arg0)
public void
a(bzm arg0, int arg1, int arg2, int arg3)
assertEntityInstancePresent(Entity arg0, int arg1, int arg2, int arg3)
public void
a(bzm arg0, jb arg1)
assertEntityInstancePresent(Entity arg0, BlockPos arg1)
public void
a(dcr arg0, jb arg1, double arg2, int arg3)
assertItemEntityCountIs(Item arg0, BlockPos arg1, double arg2, int arg3)
public void
a(dcr arg0, jb arg1, double arg2)
assertItemEntityPresent(Item arg0, BlockPos arg1, double arg2)
public void
b(dcr arg0, jb arg1, double arg2)
assertItemEntityNotPresent(Item arg0, BlockPos arg1, double arg2)
public void
a(dcr arg0)
assertItemEntityPresent(Item arg0)
public void
b(dcr arg0)
assertItemEntityNotPresent(Item arg0)
public void
d(bzv<?> arg0)
assertEntityNotPresent(EntityType<?> arg0)
public void
d(bzv<?> arg0, int arg1, int arg2, int arg3)
assertEntityNotPresent(EntityType<?> arg0, int arg1, int arg2, int arg3)
public void
d(bzv<?> arg0, jb arg1)
assertEntityNotPresent(EntityType<?> arg0, BlockPos arg1)
public void
b(bzv<?> arg0, fin arg1)
assertEntityNotPresent(EntityType<?> arg0, AABB arg1)
public void
a(bzv<?> arg0, double arg1, double arg2, double arg3)
assertEntityTouching(EntityType<?> arg0, double arg1, double arg2, double arg3)
public void
b(bzv<?> arg0, double arg1, double arg2, double arg3)
assertEntityNotTouching(EntityType<?> arg0, double arg1, double arg2, double arg3)
public <E extends Entity, T> void
a(jb arg0, bzv<E> arg1, Predicate<E> arg2)
assertEntityData(BlockPos arg0, EntityType<E> arg1, Predicate<E> arg2)
public <E extends Entity, T> void
a(jb arg0, bzv<E> arg1, Function<? super E, T> arg2, T arg3)
assertEntityData(BlockPos arg0, EntityType<E> arg1, Function<? super E, T> arg2, T arg3)
public <E extends LivingEntity> void
a(jb arg0, bzv<E> arg1, dcr arg2)
assertEntityIsHolding(BlockPos arg0, EntityType<E> arg1, Item arg2)
public <E extends Entity extends InventoryCarrier> void
b(jb arg0, bzv<E> arg1, dcr arg2)
assertEntityInventoryContains(BlockPos arg0, EntityType<E> arg1, Item arg2)
public void
f(jb arg0)
assertContainerEmpty(BlockPos arg0)
public void
a(jb arg0, dcr arg1)
assertContainerContainsSingle(BlockPos arg0, Item arg1)
public void
b(jb arg0, dcr arg1)
assertContainerContains(BlockPos arg0, Item arg1)
public void
a(euq arg0, jb arg1)
assertSameBlockStates(BoundingBox arg0, BlockPos arg1)
public void
a(jb arg0, jb arg1)
assertSameBlockState(BlockPos arg0, BlockPos arg1)
public void
a(long arg0, jb arg1, dcr arg2)
assertAtTickTimeContainerContains(long arg0, BlockPos arg1, Item arg2)
public void
a(long arg0, jb arg1)
assertAtTickTimeContainerEmpty(long arg0, BlockPos arg1)
public <E extends Entity, T> void
b(jb arg0, bzv<E> arg1, Function<E, T> arg2, T arg3)
succeedWhenEntityData(BlockPos arg0, EntityType<E> arg1, Function<E, T> arg2, T arg3)
public void
a(bzm arg0, fin arg1, xo arg2)
assertEntityPosition(Entity arg0, AABB arg1, Component arg2)
public <E extends Entity> void
a(E arg0, Predicate<E> arg1, xo arg2)
assertEntityProperty(E arg0, Predicate<E> arg1, Component arg2)
public <E extends Entity, T> void
a(E arg0, Function<E, T> arg1, T arg2, xo arg3)
assertEntityProperty(E arg0, Function<E, T> arg1, T arg2, Component arg3)
public void
a(cam arg0, jl<byo> arg1, int arg2)
assertLivingEntityHasMobEffect(LivingEntity arg0, Holder<MobEffect> arg1, int arg2)
public void
e(bzv<?> arg0, int arg1, int arg2, int arg3)
succeedWhenEntityPresent(EntityType<?> arg0, int arg1, int arg2, int arg3)
public void
e(bzv<?> arg0, jb arg1)
succeedWhenEntityPresent(EntityType<?> arg0, BlockPos arg1)
public void
f(bzv<?> arg0, int arg1, int arg2, int arg3)
succeedWhenEntityNotPresent(EntityType<?> arg0, int arg1, int arg2, int arg3)
public void
f(bzv<?> arg0, jb arg1)
succeedWhenEntityNotPresent(EntityType<?> arg0, BlockPos arg1)
public void
e()
succeed()
private void
k()
ensureSingleFinalCheck()
public void
a(Runnable arg0)
succeedIf(Runnable arg0)
public void
b(Runnable arg0)
succeedWhen(Runnable arg0)
public void
a(int arg0, Runnable arg1)
succeedOnTickWhen(int arg0, Runnable arg1)
public void
a(long arg0, Runnable arg1)
runAtTickTime(long arg0, Runnable arg1)
public void
b(long arg0, Runnable arg1)
runAfterDelay(long arg0, Runnable arg1)
public void
g(jb arg0)
randomTick(BlockPos arg0)
public void
h(jb arg0)
tickBlock(BlockPos arg0)
public void
i(jb arg0)
tickPrecipitation(BlockPos arg0)
public void
f()
tickPrecipitation()
public int
a(eka$a arg0, int arg1, int arg2)
getHeight(Heightmap$Types arg0, int arg1, int arg2)
public void
a(xo arg0, jb arg1)
fail(Component arg0, BlockPos arg1)
public void
a(xo arg0, bzm arg1)
fail(Component arg0, Entity arg1)
public void
b(xo arg0)
fail(Component arg0)
public void
c(Runnable arg0)
failIf(Runnable arg0)
public void
d(Runnable arg0)
failIfEver(Runnable arg0)
public GameTestSequence
g()
startSequence()
public BlockPos
j(jb arg0)
absolutePos(BlockPos arg0)
public BlockPos
k(jb arg0)
relativePos(BlockPos arg0)
public AABB
a(fin arg0)
absoluteAABB(AABB arg0)
public AABB
b(fin arg0)
relativeAABB(AABB arg0)
public Vec3
a(fis arg0)
absoluteVec(Vec3 arg0)
public Vec3
b(fis arg0)
relativeVec(Vec3 arg0)
public Rotation
h()
getTestRotation()
public void
a(boolean arg0, xo arg1)
assertTrue(boolean arg0, Component arg1)
public <N> void
a(N arg0, N arg1, xo arg2)
assertValueEqual(N arg0, N arg1, Component arg2)
public void
b(boolean arg0, xo arg1)
assertFalse(boolean arg0, Component arg1)
public long
i()
getTick()
public AABB
j()
getBounds()
private AABB
l()
getRelativeBounds()
public void
a(Consumer<jb> arg0)
forEveryBlockInStructure(Consumer<BlockPos> arg0)
public void
e(Runnable arg0)
onEachTick(Runnable arg0)
public void
a(cut arg0, dcv arg1, jb arg2, jh arg3)
placeAt(Player arg0, ItemStack arg1, BlockPos arg2, Direction arg3)
public void
a(amd<dnx> arg0)
setBiome(ResourceKey<Biome> arg0)