net.minecraft.test

public class TestContext

net.minecraft.gametest.framework.GameTestHelper
net.minecraft.gametest.framework.GameTestHelper
net.minecraft.class_4516
net.minecraft.test.TestContext

Field summary

Modifier and TypeField
private final GameTestState
testInfo
testInfo
field_20558
test
private boolean
finalCheckAdded
finalCheckAdded
field_33146
hasFinalClause

Constructor summary

ModifierConstructor
public (GameTestState test)

Method summary

Modifier and TypeMethod
public GameTestException
assertionException(Component description)
assertionException(Component description)
method_66943(class_2561 arg0)
createError(Text message)
public GameTestException
assertionException(String descriptionId, Object... arguments)
assertionException(String descriptionId, Object... arguments)
method_66937(String arg0, Object... arg1)
createError(String translationKey, Object... args)
public PositionedException
assertionException(BlockPos pos, Component description)
assertionException(BlockPos pos, Component description)
method_66942(class_2338 arg0, class_2561 arg1)
createError(BlockPos pos, Text message)
public PositionedException
assertionException(BlockPos pos, String descriptionId, Object... arguments)
assertionException(BlockPos pos, String descriptionId, Object... arguments)
method_66941(class_2338 arg0, String arg1, Object... arg2)
createError(BlockPos pos, String translationKey, Object... args)
public ServerWorld
getLevel()
getLevel()
method_35943()
getWorld()
public BlockState
getBlockState(BlockPos pos)
getBlockState(BlockPos pos)
method_35980(class_2338 arg0)
getBlockState(BlockPos pos)
public <T extends BlockEntity> T
getBlockEntity(BlockPos pos, Class<T> type)
getBlockEntity(BlockPos pos, Class<T> type)
method_36014(class_2338 arg0, Class<T> arg1)
getBlockEntity(BlockPos pos, Class<T> clazz)
public void
killAllEntities()
killAllEntities()
method_36001()
killAllEntities()
public void
killAllEntitiesOfClass(Class<? extends Entity> baseClass)
killAllEntitiesOfClass(Class<? extends Entity> baseClass)
method_52207(Class<? extends class_1297> arg0)
killAllEntities(Class<? extends Entity> entityClass)
public ItemEntity
spawnItem(Item item, Vec3 pos)
spawnItem(Item item, Vec3 pos)
method_57100(class_1792 arg0, class_243 arg1)
spawnItem(Item item, Vec3d pos)
public ItemEntity
spawnItem(Item item, float x, float y, float z)
spawnItem(Item item, float x, float y, float z)
method_35968(class_1792 arg0, float arg1, float arg2, float arg3)
spawnItem(Item item, float x, float y, float z)
public ItemEntity
spawnItem(Item item, BlockPos pos)
spawnItem(Item item, BlockPos pos)
method_46225(class_1792 arg0, class_2338 arg1)
spawnItem(Item item, BlockPos pos)
public void
despawnItem(BlockPos pos, double distance)
despawnItem(BlockPos pos, double distance)
method_1_2263(class_2338 arg0, double arg1)
removeItemsNear(BlockPos blockPos, double range)
public <E extends Entity> E
spawn(EntityType<E> entityType, BlockPos pos)
spawn(EntityType<E> entityType, BlockPos pos)
method_35964(class_1299<E> arg0, class_2338 arg1)
spawnEntity(EntityType<E> type, BlockPos pos)
public <E extends Entity> List<E>
spawn(EntityType<E> entityType, BlockPos pos, int amount)
spawn(EntityType<E> entityType, BlockPos pos, int amount)
method_73070(class_1299<E> arg0, class_2338 arg1, int arg2)
spawnEntities(EntityType<E> type, BlockPos pos, int count)
public <E extends Entity> List<E>
spawn(EntityType<E> entityType, Vec3 pos, int amount)
spawn(EntityType<E> entityType, Vec3 pos, int amount)
method_73069(class_1299<E> arg0, class_243 arg1, int arg2)
spawnEntities(EntityType<E> type, Vec3d pos, int count)
public <E extends Entity> E
spawn(EntityType<E> entityType, Vec3 pos)
spawn(EntityType<E> entityType, Vec3 pos)
method_75528(class_1299<E> arg0, class_243 arg1)
spawnEntity(EntityType<E> type, Vec3d pos)
public <E extends MobEntity> E
spawn(EntityType<E> entityType, double x, double y, double z, EntitySpawnReason entitySpawnReason)
spawn(EntityType<E> entityType, double x, double y, double z, EntitySpawnReason entitySpawnReason)
method_75527(class_1299<E> arg0, double arg1, double arg2, double arg3, class_3730 arg4)
spawnEntity(EntityType<E> type, double x, double y, double z, SpawnReason reason)
public <E extends Entity> E
spawn(EntityType<E> entityType, BlockPos pos, EntitySpawnReason spawnReason)
spawn(EntityType<E> entityType, BlockPos pos, EntitySpawnReason spawnReason)
method_1_5434(class_1299<E> arg0, class_2338 arg1, class_3730 arg2)
spawnEntity(EntityType<E> type, BlockPos pos, SpawnReason reason)
public <E extends Entity> E
spawn(EntityType<E> entityType, Vec3 pos, EntitySpawnReason spawnReason)
spawn(EntityType<E> entityType, Vec3 pos, EntitySpawnReason spawnReason)
method_1_4352(class_1299<E> arg0, class_243 arg1, class_3730 arg2)
spawnEntity(EntityType<E> type, Vec3d pos, SpawnReason reason)
public <E extends Entity> TestSpawner<E>
spawnEntity(EntityType<E> entityType, Vec3 position)
spawnEntity(EntityType<E> entityType, Vec3 position)
method_1_4686(class_1299<E> arg0, class_243 arg1)
testSpawner(EntityType<E> type, Vec3d pos)
public <E extends Entity> TestSpawner<E>
spawnEntity(EntityType<E> entityType, BlockPos position)
spawnEntity(EntityType<E> entityType, BlockPos position)
method_1_4685(class_1299<E> arg0, class_2338 arg1)
testSpawner(EntityType<E> type, BlockPos pos)
public <E extends Entity> TestSpawner<E>
spawnEntity(EntityType<E> entityType, int x, int y, int z)
spawnEntity(EntityType<E> entityType, int x, int y, int z)
method_1_4684(class_1299<E> arg0, int arg1, int arg2, int arg3)
testSpawner(EntityType<E> type, int x, int y, int z)
public <E extends Entity> TestSpawner<E>
spawnEntity(EntityType<E> entityType, float x, float y, float z)
spawnEntity(EntityType<E> entityType, float x, float y, float z)
method_1_4683(class_1299<E> arg0, float arg1, float arg2, float arg3)
tesstSpawner(EntityType<E> type, float x, float y, float z)
public <E extends MobEntity> TestMobSpawner<E>
spawnMob(EntityType<E> entityType, Vec3 position)
spawnMob(EntityType<E> entityType, Vec3 position)
method_1_4690(class_1299<E> arg0, class_243 arg1)
testMobSpawner(EntityType<E> type, Vec3d pos)
public <E extends MobEntity> TestMobSpawner<E>
spawnMob(EntityType<E> entityType, BlockPos position)
spawnMob(EntityType<E> entityType, BlockPos position)
method_1_4689(class_1299<E> arg0, class_2338 arg1)
testMobSpawner(EntityType<E> type, BlockPos pos)
public <E extends MobEntity> TestMobSpawner<E>
spawnMob(EntityType<E> entityType, int x, int y, int z)
spawnMob(EntityType<E> entityType, int x, int y, int z)
method_1_4688(class_1299<E> arg0, int arg1, int arg2, int arg3)
testMobSpawner(EntityType<E> type, int x, int y, int z)
public <E extends MobEntity> TestMobSpawner<E>
spawnMob(EntityType<E> entityType, float x, float y, float z)
spawnMob(EntityType<E> entityType, float x, float y, float z)
method_1_4687(class_1299<E> arg0, float arg1, float arg2, float arg3)
testMobSpawner(EntityType<E> type, float x, float y, float z)
public void
hurt(Entity entity, DamageSource source, float damage)
hurt(Entity entity, DamageSource source, float damage)
method_64543(class_1297 arg0, class_1282 arg1, float arg2)
damage(Entity entity, DamageSource damageSource, float amount)
public void
kill(Entity entity)
kill(Entity entity)
method_64542(class_1297 arg0)
killEntity(Entity entity)
public void
discard(Entity entity)
discard(Entity entity)
method_1_2264(class_1297 arg0)
discardEntity(Entity entity)
public <E extends Entity> E
findOneEntity(EntityType<E> entityType)
findOneEntity(EntityType<E> entityType)
method_56201(class_1299<E> arg0)
expectEntityInWorld(EntityType<E> type)
public <E extends Entity> E
findClosestEntity(EntityType<E> entityType, int x, int y, int z, double distance)
findClosestEntity(EntityType<E> entityType, int x, int y, int z, double distance)
method_56202(class_1299<E> arg0, int arg1, int arg2, int arg3, double arg4)
expectEntity(EntityType<E> type, int x, int y, int z, double margin)
public <E extends Entity> List<E>
findEntities(EntityType<E> entityType, int x, int y, int z, double distance)
findEntities(EntityType<E> entityType, int x, int y, int z, double distance)
method_56207(class_1299<E> arg0, int arg1, int arg2, int arg3, double arg4)
getEntitiesAround(EntityType<E> type, int x, int y, int z, double margin)
public <E extends Entity> List<E>
findEntities(EntityType<E> entityType, Vec3 pos, double distance)
findEntities(EntityType<E> entityType, Vec3 pos, double distance)
method_56203(class_1299<E> arg0, class_243 arg1, double arg2)
getEntitiesAround(EntityType<E> type, Vec3d pos, double margin)
public <E extends Entity> E
spawn(EntityType<E> entityType, int x, int y, int z)
spawn(EntityType<E> entityType, int x, int y, int z)
method_35962(class_1299<E> arg0, int arg1, int arg2, int arg3)
spawnEntity(EntityType<E> type, int x, int y, int z)
public <E extends Entity> E
spawn(EntityType<E> entityType, float x, float y, float z)
spawn(EntityType<E> entityType, float x, float y, float z)
method_35961(class_1299<E> arg0, float arg1, float arg2, float arg3)
spawnEntity(EntityType<E> type, float x, float y, float z)
public <E extends MobEntity> E
spawnWithNoFreeWill(EntityType<E> entityType, BlockPos pos)
spawnWithNoFreeWill(EntityType<E> entityType, BlockPos pos)
method_36009(class_1299<E> arg0, class_2338 arg1)
spawnMob(EntityType<E> type, BlockPos pos)
public <E extends MobEntity> E
spawnWithNoFreeWill(EntityType<E> entityType, int x, int y, int z)
spawnWithNoFreeWill(EntityType<E> entityType, int x, int y, int z)
method_36007(class_1299<E> arg0, int arg1, int arg2, int arg3)
spawnMob(EntityType<E> type, int x, int y, int z)
public <E extends MobEntity> E
spawnWithNoFreeWill(EntityType<E> entityType, Vec3 pos)
spawnWithNoFreeWill(EntityType<E> entityType, Vec3 pos)
method_36008(class_1299<E> arg0, class_243 arg1)
spawnMob(EntityType<E> type, Vec3d pos)
public <E extends MobEntity> E
spawnWithNoFreeWill(EntityType<E> entityType, float x, float y, float z)
spawnWithNoFreeWill(EntityType<E> entityType, float x, float y, float z)
method_36006(class_1299<E> arg0, float arg1, float arg2, float arg3)
spawnMob(EntityType<E> type, float x, float y, float z)
public void
moveTo(Mob mob, float x, float y, float z)
moveTo(Mob mob, float x, float y, float z)
method_57099(class_1308 arg0, float arg1, float arg2, float arg3)
setEntityPos(MobEntity entity, float x, float y, float z)
public void
moveTo(Mob mob, BlockPos pos)
moveTo(Mob mob, BlockPos pos)
method_1_2265(class_1308 arg0, class_2338 arg1)
setEntityPos(MobEntity entity, BlockPos blockPos)
public void
moveTo(Mob mob, Vec3 pos)
moveTo(Mob mob, Vec3 pos)
method_1_2266(class_1308 arg0, class_243 arg1)
setEntityPos(MobEntity entity, Vec3d pos)
public TimedTaskRunner
walkTo(Mob mob, BlockPos targetPos, float speedModifier)
walkTo(Mob mob, BlockPos targetPos, float speedModifier)
method_35967(class_1308 arg0, class_2338 arg1, float arg2)
startMovingTowards(MobEntity entity, BlockPos pos, float speed)
public void
pressButton(int x, int y, int z)
pressButton(int x, int y, int z)
method_35945(int arg0, int arg1, int arg2)
pushButton(int x, int y, int z)
public void
pressButton(BlockPos buttonPos)
pressButton(BlockPos buttonPos)
method_36026(class_2338 arg0)
pushButton(BlockPos pos)
public void
useBlock(BlockPos relativePos)
useBlock(BlockPos relativePos)
method_46229(class_2338 arg0)
useBlock(BlockPos pos)
public void
useBlock(BlockPos relativePos, Player player)
useBlock(BlockPos relativePos, Player player)
method_36034(class_2338 arg0, class_1657 arg1)
useBlock(BlockPos pos, PlayerEntity player)
public void
useBlock(BlockPos relativePos, Player player, BlockHitResult hitResult)
useBlock(BlockPos relativePos, Player player, BlockHitResult hitResult)
method_47817(class_2338 arg0, class_1657 arg1, class_3965 arg2)
useBlock(BlockPos pos, PlayerEntity player, BlockHitResult result)
public LivingEntity
makeAboutToDrown(LivingEntity entity)
makeAboutToDrown(LivingEntity entity)
method_35966(class_1309 arg0)
drown(LivingEntity entity)
public LivingEntity
withLowHealth(LivingEntity entity)
withLowHealth(LivingEntity entity)
method_51821(class_1309 arg0)
setHealthLow(LivingEntity entity)
public PlayerEntity
makeMockPlayer(GameType gameType)
makeMockPlayer(GameType gameType)
method_36021(class_1934 arg0)
createMockPlayer(GameMode gameMode)
public PlayerEntity
makeMockServerPlayer(GameType gameType)
makeMockServerPlayer(GameType gameType)
method_1_4350(class_1934 arg0)
createMockServerPlayer(GameMode gameMode)
public ServerPlayerEntity
makeMockServerPlayerInLevel()
makeMockServerPlayerInLevel()
method_51891()
createMockCreativeServerPlayerInWorld()
public void
pullLever(int x, int y, int z)
pullLever(int x, int y, int z)
method_36002(int arg0, int arg1, int arg2)
toggleLever(int x, int y, int z)
public void
pullLever(BlockPos leverPos)
pullLever(BlockPos leverPos)
method_36039(class_2338 arg0)
toggleLever(BlockPos pos)
public void
placeBlock(BlockPos relativePos, Block block, Direction relativePlaceDirection)
placeBlock(BlockPos relativePos, Block block, Direction relativePlaceDirection)
method_1_3128(class_2338 arg0, class_2248 arg1, class_2350 arg2)
placeBlock(BlockPos pos, Block block, Direction direction)
public void
placeBlock(int x, int y, int z, Block block, Direction placeDirection)
placeBlock(int x, int y, int z, Block block, Direction placeDirection)
method_1_3127(int arg0, int arg1, int arg2, class_2248 arg3, class_2350 arg4)
placeBlock(int x, int y, int z, Block block, Direction direction)
public void
pulseRedstone(BlockPos pos, long duration)
pulseRedstone(BlockPos pos, long duration)
method_35981(class_2338 arg0, long arg1)
putAndRemoveRedstoneBlock(BlockPos pos, long delay)
public void
destroyBlock(BlockPos pos)
destroyBlock(BlockPos pos)
method_36044(class_2338 arg0)
removeBlock(BlockPos pos)
public void
setBlock(int x, int y, int z, Block block)
setBlock(int x, int y, int z, Block block)
method_35946(int arg0, int arg1, int arg2, class_2248 arg3)
setBlockState(int x, int y, int z, Block block)
public void
setBlock(int x, int y, int z, BlockState state)
setBlock(int x, int y, int z, BlockState state)
method_35947(int arg0, int arg1, int arg2, class_2680 arg3)
setBlockState(int x, int y, int z, BlockState state)
public void
setBlock(BlockPos blockPos, Block block)
setBlock(BlockPos blockPos, Block block)
method_35984(class_2338 arg0, class_2248 arg1)
setBlockState(BlockPos pos, Block block)
public void
setBlock(BlockPos blockPos, BlockState state)
setBlock(BlockPos blockPos, BlockState state)
method_35986(class_2338 arg0, class_2680 arg1)
setBlockState(BlockPos pos, BlockState state)
public void
setBlock(BlockPos blockPos, Block block, Direction direction)
setBlock(BlockPos blockPos, Block block, Direction direction)
method_73072(class_2338 arg0, class_2248 arg1, class_2350 arg2)
setBlockFacing(BlockPos pos, Block block, Direction facing)
public void
setBlock(BlockPos blockPos, BlockState blockState, Direction direction)
setBlock(BlockPos blockPos, BlockState blockState, Direction direction)
method_73073(class_2338 arg0, class_2680 arg1, class_2350 arg2)
setBlockFacing(BlockPos pos, BlockState block, Direction facing)
public void
assertBlockPresent(Block blockType, int x, int y, int z)
assertBlockPresent(Block blockType, int x, int y, int z)
method_35971(class_2248 arg0, int arg1, int arg2, int arg3)
expectBlock(Block block, int x, int y, int z)
public void
assertBlockPresent(Block blockType, BlockPos pos)
assertBlockPresent(Block blockType, BlockPos pos)
method_35972(class_2248 arg0, class_2338 arg1)
expectBlock(Block block, BlockPos pos)
public void
assertBlockPresent(Block blockType)
assertBlockPresent(Block blockType)
method_1_525(class_2248 arg0)
expectBlockPresent(Block block)
public void
assertBlockNotPresent(Block blockType, int x, int y, int z)
assertBlockNotPresent(Block blockType, int x, int y, int z)
method_36011(class_2248 arg0, int arg1, int arg2, int arg3)
dontExpectBlock(Block block, int x, int y, int z)
public void
assertBlockNotPresent(Block blockType, BlockPos pos)
assertBlockNotPresent(Block blockType, BlockPos pos)
method_36012(class_2248 arg0, class_2338 arg1)
dontExpectBlock(Block block, BlockPos pos)
public void
assertBlockTag(TagKey<Block> tag, BlockPos pos)
assertBlockTag(TagKey<Block> tag, BlockPos pos)
method_66935(class_6862<class_2248> arg0, class_2338 arg1)
expectBlockIn(TagKey<Block> tag, BlockPos pos)
public void
succeedWhenBlockPresent(Block block, int x, int y, int z)
succeedWhenBlockPresent(Block block, int x, int y, int z)
method_36024(class_2248 arg0, int arg1, int arg2, int arg3)
expectBlockAtEnd(Block block, int x, int y, int z)
public void
succeedWhenBlockPresent(Block block, BlockPos pos)
succeedWhenBlockPresent(Block block, BlockPos pos)
method_36025(class_2248 arg0, class_2338 arg1)
expectBlockAtEnd(Block block, BlockPos pos)
public void
assertBlock(BlockPos pos, Predicate<Block> predicate, Function<Block, Component> errorMessage)
assertBlock(BlockPos pos, Predicate<Block> predicate, Function<Block, Component> errorMessage)
method_35992(class_2338 arg0, Predicate<class_2248> arg1, Function<class_2248, class_2561> arg2)
checkBlock(BlockPos pos, Predicate<Block> predicate, Function<Block, Text> messageGetter)
public <T extends Comparable<T>> void
assertBlockProperty(BlockPos pos, Property<T> property, T value)
assertBlockProperty(BlockPos pos, Property<T> property, T value)
method_35987(class_2338 arg0, class_2769<T> arg1, T arg2)
expectBlockProperty(BlockPos pos, Property<T> property, T value)
public <T extends Comparable<T>> void
assertBlockProperty(BlockPos pos, Property<T> property, Predicate<T> predicate, Component errorMessage)
assertBlockProperty(BlockPos pos, Property<T> property, Predicate<T> predicate, Component errorMessage)
method_35988(class_2338 arg0, class_2769<T> arg1, Predicate<T> arg2, class_2561 arg3)
checkBlockProperty(BlockPos pos, Property<T> property, Predicate<T> predicate, Text message)
public void
assertBlockState(BlockPos pos, BlockState expected)
assertBlockState(BlockPos pos, BlockState expected)
method_66947(class_2338 arg0, class_2680 arg1)
expectBlockState(BlockPos pos, BlockState state)
public void
assertBlockState(BlockPos pos, Predicate<BlockState> predicate, Function<BlockState, Component> errorMessage)
assertBlockState(BlockPos pos, Predicate<BlockState> predicate, Function<BlockState, Component> errorMessage)
method_36017(class_2338 arg0, Predicate<class_2680> arg1, Function<class_2680, class_2561> arg2)
checkBlockState(BlockPos pos, Predicate<BlockState> predicate, Function<BlockState, Text> messageGetter)
public <T extends BlockEntity> void
assertBlockEntityData(BlockPos pos, Class<T> type, Predicate<T> predicate, Supplier<Component> errorMessage)
assertBlockEntityData(BlockPos pos, Class<T> type, Predicate<T> predicate, Supplier<Component> errorMessage)
method_60651(class_2338 arg0, Class<T> arg1, Predicate<T> arg2, Supplier<class_2561> arg3)
checkBlockEntity(BlockPos pos, Class<T> clazz, Predicate<T> predicate, Supplier<Text> messageGetter)
public void
assertRedstoneSignal(BlockPos pos, Direction direction, IntPredicate levelPredicate, Supplier<Component> errorMessage)
assertRedstoneSignal(BlockPos pos, Direction direction, IntPredicate levelPredicate, Supplier<Component> errorMessage)
method_52225(class_2338 arg0, class_2350 arg1, IntPredicate arg2, Supplier<class_2561> arg3)
expectRedstonePower(BlockPos pos, Direction direction, IntPredicate powerPredicate, Supplier<Text> messageGetter)
public void
assertEntityPresent(EntityType<?> entityType)
assertEntityPresent(EntityType<?> entityType)
method_35959(class_1299<?> arg0)
expectEntity(EntityType<?> type)
public void
assertEntityPresent(EntityType<?> entityType, int x, int y, int z)
assertEntityPresent(EntityType<?> entityType, int x, int y, int z)
method_36022(class_1299<?> arg0, int arg1, int arg2, int arg3)
expectEntityAt(EntityType<?> type, int x, int y, int z)
public void
assertEntityPresent(EntityType<?> entityType, BlockPos pos)
assertEntityPresent(EntityType<?> entityType, BlockPos pos)
method_36023(class_1299<?> arg0, class_2338 arg1)
expectEntityAt(EntityType<?> type, BlockPos pos)
public void
assertEntityPresent(EntityType<?> entityType, AABB relativeAABB)
assertEntityPresent(EntityType<?> entityType, AABB relativeAABB)
method_46224(class_1299<?> arg0, class_238 arg1)
expectEntityInside(EntityType<?> type, Box box)
public void
assertEntityPresent(EntityType<?> entityType, AABB relativeAABB, Component message)
assertEntityPresent(EntityType<?> entityType, AABB relativeAABB, Component message)
method_61173(class_1299<?> arg0, class_238 arg1, class_2561 arg2)
expectEntityIn(EntityType<?> type, Box box, Text message)
public void
assertEntitiesPresent(EntityType<?> entityType, int expectedEntities)
assertEntitiesPresent(EntityType<?> entityType, int expectedEntities)
method_55323(class_1299<?> arg0, int arg1)
expectEntities(EntityType<?> type, int amount)
public void
assertEntitiesPresent(EntityType<?> entityType, BlockPos pos, int numOfExpectedEntities, double distance)
assertEntitiesPresent(EntityType<?> entityType, BlockPos pos, int numOfExpectedEntities, double distance)
method_44606(class_1299<?> arg0, class_2338 arg1, int arg2, double arg3)
expectEntitiesAround(EntityType<?> type, BlockPos pos, int amount, double radius)
public void
assertEntityPresent(EntityType<?> entityType, BlockPos pos, double distance)
assertEntityPresent(EntityType<?> entityType, BlockPos pos, double distance)
method_35965(class_1299<?> arg0, class_2338 arg1, double arg2)
expectEntityAround(EntityType<?> type, BlockPos pos, double radius)
public <T extends Entity> List<T>
getEntities(EntityType<T> entityType, BlockPos pos, double distance)
getEntities(EntityType<T> entityType, BlockPos pos, double distance)
method_44335(class_1299<T> arg0, class_2338 arg1, double arg2)
getEntitiesAround(EntityType<T> type, BlockPos pos, double radius)
public <T extends Entity> List<T>
getEntities(EntityType<T> entityType)
getEntities(EntityType<T> entityType)
method_56208(class_1299<T> arg0)
getEntities(EntityType<T> type)
public void
assertEntityInstancePresent(Entity entity, int x, int y, int z)
assertEntityInstancePresent(Entity entity, int x, int y, int z)
method_35953(class_1297 arg0, int arg1, int arg2, int arg3)
expectEntityAt(Entity entity, int x, int y, int z)
public void
assertEntityInstancePresent(Entity entity, BlockPos pos)
assertEntityInstancePresent(Entity entity, BlockPos pos)
method_1_2262(class_1297 arg0, class_2338 arg1)
expectEntityAt(Entity entity, BlockPos blockPos)
public void
assertEntityInstancePresent(Entity entity, BlockPos pos, double inflate)
assertEntityInstancePresent(Entity entity, BlockPos pos, double inflate)
method_35955(class_1297 arg0, class_2338 arg1, double arg2)
expectEntityAt(Entity entity, BlockPos pos, double range)
public void
assertItemEntityCountIs(Item itemType, BlockPos pos, double distance, int count)
assertItemEntityCountIs(Item itemType, BlockPos pos, double distance, int count)
method_35970(class_1792 arg0, class_2338 arg1, double arg2, int arg3)
expectItemsAt(Item item, BlockPos pos, double radius, int amount)
public void
assertItemEntityPresent(Item itemType, BlockPos pos, double distance)
assertItemEntityPresent(Item itemType, BlockPos pos, double distance)
method_35969(class_1792 arg0, class_2338 arg1, double arg2)
expectItemAt(Item item, BlockPos pos, double radius)
public void
assertItemEntityNotPresent(Item itemType, BlockPos pos, double distance)
assertItemEntityNotPresent(Item itemType, BlockPos pos, double distance)
method_42762(class_1792 arg0, class_2338 arg1, double arg2)
dontExpectItemAt(Item item, BlockPos pos, double radius)
public void
assertItemEntityPresent(Item itemType)
assertItemEntityPresent(Item itemType)
method_54143(class_1792 arg0)
expectItem(Item item)
public void
assertItemEntityNotPresent(Item itemType)
assertItemEntityNotPresent(Item itemType)
method_54144(class_1792 arg0)
dontExpectItem(Item item)
public void
assertEntityNotPresent(EntityType<?> entityType)
assertEntityNotPresent(EntityType<?> entityType)
method_36004(class_1299<?> arg0)
dontExpectEntity(EntityType<?> type)
public void
assertEntityNotPresent(EntityType<?> entityType, int x, int y, int z)
assertEntityNotPresent(EntityType<?> entityType, int x, int y, int z)
method_36031(class_1299<?> arg0, int arg1, int arg2, int arg3)
dontExpectEntityAt(EntityType<?> type, int x, int y, int z)
public void
assertEntityNotPresent(EntityType<?> entityType, BlockPos pos)
assertEntityNotPresent(EntityType<?> entityType, BlockPos pos)
method_36032(class_1299<?> arg0, class_2338 arg1)
dontExpectEntityAt(EntityType<?> type, BlockPos pos)
public void
assertEntityNotPresent(EntityType<?> entityType, AABB relativeAABB)
assertEntityNotPresent(EntityType<?> entityType, AABB relativeAABB)
method_59872(class_1299<?> arg0, class_238 arg1)
dontExpectEntityBetween(EntityType<?> type, Box box)
public void
assertEntityTouching(EntityType<?> entityType, double x, double y, double z)
assertEntityTouching(EntityType<?> entityType, double x, double y, double z)
method_35960(class_1299<?> arg0, double arg1, double arg2, double arg3)
expectEntityToTouch(EntityType<?> type, double x, double y, double z)
public void
assertEntityNotTouching(EntityType<?> entityType, double x, double y, double z)
assertEntityNotTouching(EntityType<?> entityType, double x, double y, double z)
method_36005(class_1299<?> arg0, double arg1, double arg2, double arg3)
dontExpectEntityToTouch(EntityType<?> type, double x, double y, double z)
public <E extends Entity, T> void
assertEntityData(BlockPos pos, EntityType<E> entityType, Predicate<E> test)
assertEntityData(BlockPos pos, EntityType<E> entityType, Predicate<E> test)
method_64113(class_2338 arg0, class_1299<E> arg1, Predicate<E> arg2)
expectEntity(BlockPos pos, EntityType<E> type, Predicate<E> predicate)
public <E extends Entity, T> void
assertEntityData(BlockPos pos, EntityType<E> entityType, Function<? super E, T> dataAccessor, T data)
assertEntityData(BlockPos pos, EntityType<E> entityType, Function<? super E, T> dataAccessor, T data)
method_35982(class_2338 arg0, class_1299<E> arg1, Function<? super E, T> arg2, T arg3)
expectEntityWithData(BlockPos pos, EntityType<E> type, Function<? super E, T> entityDataGetter, T data)
public <E extends Entity, T> void
assertEntityData(AABB box, EntityType<E> entityType, Function<? super E, T> dataAccessor, T data)
assertEntityData(AABB box, EntityType<E> entityType, Function<? super E, T> dataAccessor, T data)
method_75849(class_238 arg0, class_1299<E> arg1, Function<? super E, T> arg2, T arg3)
expectEntityWithData(Box box, EntityType<E> type, Function<? super E, T> entityDataGetter, T data)
public <E extends LivingEntity> void
assertEntityIsHolding(BlockPos pos, EntityType<E> entityType, Item item)
assertEntityIsHolding(BlockPos pos, EntityType<E> entityType, Item item)
method_48001(class_2338 arg0, class_1299<E> arg1, class_1792 arg2)
expectEntityHoldingItem(BlockPos pos, EntityType<E> entityType, Item item)
public <E extends Entity extends InventoryOwner> void
assertEntityInventoryContains(BlockPos pos, EntityType<E> entityType, Item item)
assertEntityInventoryContains(BlockPos pos, EntityType<E> entityType, Item item)
method_48003(class_2338 arg0, class_1299<E> arg1, class_1792 arg2)
expectEntityWithItem(BlockPos pos, EntityType<E> entityType, Item item)
public void
assertContainerEmpty(BlockPos pos)
assertContainerEmpty(BlockPos pos)
method_36047(class_2338 arg0)
expectEmptyContainer(BlockPos pos)
public void
assertContainerContainsSingle(BlockPos pos, Item item)
assertContainerContainsSingle(BlockPos pos, Item item)
method_66940(class_2338 arg0, class_1792 arg1)
expectContainerWithSingle(BlockPos pos, Item item)
public void
assertContainerContains(BlockPos pos, Item item)
assertContainerContains(BlockPos pos, Item item)
method_35983(class_2338 arg0, class_1792 arg1)
expectContainerWith(BlockPos pos, Item item)
public void
assertSameBlockStates(BoundingBox sourceBoundingBox, BlockPos targetBoundingBoxCorner)
assertSameBlockStates(BoundingBox sourceBoundingBox, BlockPos targetBoundingBoxCorner)
method_35977(class_3341 arg0, class_2338 arg1)
expectSameStates(BlockBox checkedBlockBox, BlockPos correctStatePos)
public void
assertSameBlockState(BlockPos sourcePos, BlockPos targetPos)
assertSameBlockState(BlockPos sourcePos, BlockPos targetPos)
method_35990(class_2338 arg0, class_2338 arg1)
expectSameStates(BlockPos checkedPos, BlockPos correctStatePos)
public void
assertAtTickTimeContainerContains(long time, BlockPos pos, Item item)
assertAtTickTimeContainerContains(long time, BlockPos pos, Item item)
method_35950(long arg0, class_2338 arg1, class_1792 arg2)
expectContainerWith(long delay, BlockPos pos, Item item)
public void
assertAtTickTimeContainerEmpty(long time, BlockPos pos)
assertAtTickTimeContainerEmpty(long time, BlockPos pos)
method_35949(long arg0, class_2338 arg1)
expectEmptyContainer(long delay, BlockPos pos)
public <E extends Entity, T> void
succeedWhenEntityData(BlockPos pos, EntityType<E> entityType, Function<E, T> dataAccessor, T data)
succeedWhenEntityData(BlockPos pos, EntityType<E> entityType, Function<E, T> dataAccessor, T data)
method_36015(class_2338 arg0, class_1299<E> arg1, Function<E, T> arg2, T arg3)
expectEntityWithDataEnd(BlockPos pos, EntityType<E> type, Function<E, T> entityDataGetter, T data)
public <E extends Entity> void
assertEntityProperty(E entity, Predicate<E> test, Component description)
assertEntityProperty(E entity, Predicate<E> test, Component description)
method_35958(E arg0, Predicate<E> arg1, class_2561 arg2)
testEntity(E entity, Predicate<E> predicate, Text message)
public <E extends Entity, T> void
assertEntityProperty(E entity, Function<E, T> test, T expected, Component description)
assertEntityProperty(E entity, Function<E, T> test, T expected, Component description)
method_35957(E arg0, Function<E, T> arg1, T arg2, class_2561 arg3)
testEntityProperty(E entity, Function<E, T> propertyGetter, T value, Text message)
public void
assertLivingEntityHasMobEffect(LivingEntity entity, Holder<MobEffect> mobEffect, int amplifier)
assertLivingEntityHasMobEffect(LivingEntity entity, Holder<MobEffect> mobEffect, int amplifier)
method_52889(class_1309 arg0, class_6880<class_1291> arg1, int arg2)
expectEntityHasEffect(LivingEntity entity, RegistryEntry<StatusEffect> effect, int amplifier)
public void
succeedWhenEntityPresent(EntityType<?> entityType, int x, int y, int z)
succeedWhenEntityPresent(EntityType<?> entityType, int x, int y, int z)
method_36037(class_1299<?> arg0, int arg1, int arg2, int arg3)
expectEntityAtEnd(EntityType<?> type, int x, int y, int z)
public void
succeedWhenEntityPresent(EntityType<?> entityType, BlockPos pos)
succeedWhenEntityPresent(EntityType<?> entityType, BlockPos pos)
method_36038(class_1299<?> arg0, class_2338 arg1)
expectEntityAtEnd(EntityType<?> type, BlockPos pos)
public void
succeedWhenEntityNotPresent(EntityType<?> entityType, int x, int y, int z)
succeedWhenEntityNotPresent(EntityType<?> entityType, int x, int y, int z)
method_36042(class_1299<?> arg0, int arg1, int arg2, int arg3)
dontExpectEntityAtEnd(EntityType<?> type, int x, int y, int z)
public void
succeedWhenEntityNotPresent(EntityType<?> entityType, BlockPos pos)
succeedWhenEntityNotPresent(EntityType<?> entityType, BlockPos pos)
method_36043(class_1299<?> arg0, class_2338 arg1)
dontExpectEntityAtEnd(EntityType<?> type, BlockPos pos)
public void
succeed()
succeed()
method_36036()
complete()
private void
ensureSingleFinalCheck()
ensureSingleFinalCheck()
method_36048()
markFinalCause()
public void
succeedIf(Runnable asserter)
succeedIf(Runnable asserter)
method_35993(Runnable arg0)
addFinalTask(Runnable runnable)
public void
succeedWhen(Runnable asserter)
succeedWhen(Runnable asserter)
method_36018(Runnable arg0)
addInstantFinalTask(Runnable runnable)
public void
succeedOnTickWhen(int tick, Runnable asserter)
succeedOnTickWhen(int tick, Runnable asserter)
method_35948(int arg0, Runnable arg1)
addFinalTaskWithDuration(int duration, Runnable runnable)
public void
runAtTickTime(long time, Runnable asserter)
runAtTickTime(long time, Runnable asserter)
method_35951(long arg0, Runnable arg1)
runAtTick(long tick, Runnable runnable)
public void
runBeforeTestEnd(Runnable asserter)
runBeforeTestEnd(Runnable asserter)
method_1_1003(Runnable arg0)
runAtLastTick(Runnable runnable)
public void
runAfterDelay(long ticksToDelay, Runnable whatToRun)
runAfterDelay(long ticksToDelay, Runnable whatToRun)
method_36003(long arg0, Runnable arg1)
waitAndRun(long ticks, Runnable runnable)
public void
setTime(long ticks)
setTime(long ticks)
method_1_2267(long arg0)
setDefaultClockTime(long ticks)
public void
randomTick(BlockPos pos)
randomTick(BlockPos pos)
method_36050(class_2338 arg0)
forceRandomTick(BlockPos pos)
public void
tickBlock(BlockPos pos)
tickBlock(BlockPos pos)
method_66562(class_2338 arg0)
forceScheduledTick(BlockPos pos)
public void
tickPrecipitation(BlockPos pos)
tickPrecipitation(BlockPos pos)
method_55453(class_2338 arg0)
forceTickIceAndSnow(BlockPos pos)
public void
tickPrecipitation()
tickPrecipitation()
method_55452()
forceTickIceAndSnow()
public int
getHeight(Heightmap$Types heightmap, int x, int z)
getHeight(Heightmap$Types heightmap, int x, int z)
method_42063(class_2902$class_2903 arg0, int arg1, int arg2)
getRelativeTopY(Heightmap$Type heightmap, int x, int z)
public void
fail(Component message, BlockPos pos)
fail(Component message, BlockPos pos)
method_35997(class_2561 arg0, class_2338 arg1)
throwPositionedException(Text message, BlockPos pos)
public void
fail(Component message, Entity entity)
fail(Component message, Entity entity)
method_35996(class_2561 arg0, class_1297 arg1)
throwPositionedException(Text message, Entity entity)
public void
fail(Component message)
fail(Component message)
method_35995(class_2561 arg0)
throwGameTestException(Text message)
public void
fail(String message)
fail(String message)
method_73071(String arg0)
throwGameTestException(String message)
public void
failIf(Runnable asserter)
failIf(Runnable asserter)
method_36028(Runnable arg0)
addTask(Runnable task)
public void
failIfEver(Runnable asserter)
failIfEver(Runnable asserter)
method_36035(Runnable arg0)
runAtEveryTick(Runnable task)
public TimedTaskRunner
startSequence()
startSequence()
method_36041()
createTimedTaskRunner()
public BlockPos
absolutePos(BlockPos relativePos)
absolutePos(BlockPos relativePos)
method_36052(class_2338 arg0)
getAbsolutePos(BlockPos pos)
public BlockPos
relativePos(BlockPos absolutePos)
relativePos(BlockPos absolutePos)
method_36054(class_2338 arg0)
getRelativePos(BlockPos pos)
public Box
absoluteAABB(AABB relativeAABB)
absoluteAABB(AABB relativeAABB)
method_62772(class_238 arg0)
getAbsolute(Box box)
public Box
relativeAABB(AABB absoluteAABB)
relativeAABB(AABB absoluteAABB)
method_62773(class_238 arg0)
getRelative(Box box)
public Vec3d
absoluteVec(Vec3 relativeVec)
absoluteVec(Vec3 relativeVec)
method_35978(class_243 arg0)
getAbsolute(Vec3d pos)
public Vec3d
relativeVec(Vec3 absoluteVec)
relativeVec(Vec3 absoluteVec)
method_46227(class_243 arg0)
getRelative(Vec3d pos)
public BlockRotation
getTestRotation()
getTestRotation()
method_61093()
getRotation()
public Direction
getTestDirection()
getTestDirection()
method_73074()
getDirection()
public Direction
getAbsoluteDirection(Direction direction)
getAbsoluteDirection(Direction direction)
method_76680(class_2350 arg0)
rotate(Direction direction)
public void
assertTrue(boolean condition, Component errorMessage)
assertTrue(boolean condition, Component errorMessage)
method_46226(boolean arg0, class_2561 arg1)
assertTrue(boolean condition, Text message)
public void
assertTrue(boolean condition, String errorMessage)
assertTrue(boolean condition, String errorMessage)
method_75529(boolean arg0, String arg1)
assertTrue(boolean condition, String message)
public <N> void
assertValueEqual(N value, N expected, String valueName)
assertValueEqual(N value, N expected, String valueName)
method_75850(N arg0, N arg1, String arg2)
assertEquals(N expected, N value, String message)
public <N> void
assertValueEqual(N value, N expected, Component valueName)
assertValueEqual(N value, N expected, Component valueName)
method_56606(N arg0, N arg1, class_2561 arg2)
assertEquals(N expected, N value, Text message)
public <N extends Comparable<N>> void
assertValueInBetween(N lowerBound, N value, N upperBound, String valueName)
assertValueInBetween(N lowerBound, N value, N upperBound, String valueName)
method_1_4348(N arg0, N arg1, N arg2, String arg3)
assertBetween(N min, N value, N max, String message)
public <N extends Comparable<N>> void
assertValueInBetween(N lowerBound, N value, N upperBound, Component valueName)
assertValueInBetween(N lowerBound, N value, N upperBound, Component valueName)
method_1_4349(N arg0, N arg1, N arg2, class_2561 arg3)
assertBetween(N min, N value, N max, Text message)
public void
assertFalse(boolean condition, Component errorMessage)
assertFalse(boolean condition, Component errorMessage)
method_49994(boolean arg0, class_2561 arg1)
assertFalse(boolean condition, Text message)
public void
assertFalse(boolean condition, String errorMessage)
assertFalse(boolean condition, String errorMessage)
method_75530(boolean arg0, String arg1)
assertFalse(boolean condition, String message)
public long
getTick()
getTick()
method_36045()
getTick()
public Box
getBounds()
getBounds()
method_36051()
getTestBox()
public Box
getBoundsWithPadding()
getBoundsWithPadding()
method_1_787()
getTestBoxWithPadding()
public Box
getRelativeBounds()
getRelativeBounds()
method_36053()
getRelativeTestBox()
public void
forEveryBlockInStructure(Consumer<BlockPos> forBlock)
forEveryBlockInStructure(Consumer<BlockPos> forBlock)
method_35998(Consumer<class_2338> arg0)
forEachRelativePos(Consumer<BlockPos> posConsumer)
public void
onEachTick(Runnable action)
onEachTick(Runnable action)
method_36040(Runnable arg0)
forEachRemainingTick(Runnable runnable)
public void
placeAt(Player player, ItemStack blockStack, BlockPos pos, Direction face)
placeAt(Player player, ItemStack blockStack, BlockPos pos, Direction face)
method_47816(class_1657 arg0, class_1799 arg1, class_2338 arg2, class_2350 arg3)
useStackOnBlock(PlayerEntity player, ItemStack stack, BlockPos pos, Direction direction)
public void
setBiome(ResourceKey<Biome> biome)
setBiome(ResourceKey<Biome> biome)
method_55451(class_5321<class_1959> arg0)
setBiome(RegistryKey<Biome> biome)
private static Text
getItemName(Item itemType)
getItemName(Item itemType)
method_1_1002(class_1792 arg0)
getItemNameOrEmpty(Item item)