Skip to content

Package net.minecraft.gametest.framework

Part 1/1


GameTestAssertException

  • Full name: net.minecraft.gametest.framework.GameTestAssertException
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestAssertException.java
  • Type: class
  • Modifiers: public
  • Extends: RuntimeException

net.minecraft.gametest.framework.GameTestAssertException#GameTestAssertException(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestAssertException.java:4
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ GameTestAssertException ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • String string

ตัวอย่างใช้งาน

GameTestAssertException instance = new GameTestAssertException("value");

GameTestAssertPosException

  • Full name: net.minecraft.gametest.framework.GameTestAssertPosException
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestAssertPosException.java
  • Type: class
  • Modifiers: public
  • Extends: GameTestAssertException

net.minecraft.gametest.framework.GameTestAssertPosException#GameTestAssertPosException(String,BlockPos,BlockPos,long)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestAssertPosException.java:11
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ GameTestAssertPosException ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: absolutePos, relativePos, tick.

Parameters

  • String string
  • BlockPos blockPos
  • BlockPos blockPos2
  • long l

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
BlockPos blockPos2 = ...;
GameTestAssertPosException instance = new GameTestAssertPosException("value", blockPos, blockPos2, 0L);

net.minecraft.gametest.framework.GameTestAssertPosException#getAbsolutePos()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestAssertPosException.java:45
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Absolute Pos

ทำงานยังไง

คืนค่า: this.absolutePos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestAssertPosException instance = ...;
BlockPos result = instance.getAbsolutePos();

net.minecraft.gametest.framework.GameTestAssertPosException#getMessage()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestAssertPosException.java:18
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Message

ทำงานยังไง

เรียกต่อ: getX(), getY(), getZ(). คืนค่า: super.getMessage() + " at " + string + " (t=" + this.tick + ")".

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestAssertPosException instance = ...;
String result = instance.getMessage();

net.minecraft.gametest.framework.GameTestAssertPosException#getMessageToShowAtBlock()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestAssertPosException.java:35
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Message To Show At Block

ทำงานยังไง

เรียกต่อ: getMessage(). คืนค่า: super.getMessage().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestAssertPosException instance = ...;
String result = instance.getMessageToShowAtBlock();

net.minecraft.gametest.framework.GameTestAssertPosException#getRelativePos()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestAssertPosException.java:40
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Relative Pos

ทำงานยังไง

คืนค่า: this.relativePos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestAssertPosException instance = ...;
BlockPos result = instance.getRelativePos();

GameTestBatch

  • Full name: net.minecraft.gametest.framework.GameTestBatch
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestBatch.java
  • Type: record
  • Modifiers: public

net.minecraft.gametest.framework.GameTestBatch#GameTestBatch(String,Collection<GameTestInfo>,Consumer<ServerLevel>,Consumer<ServerLevel>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatch.java:12
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ GameTestBatch ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(). สร้างออบเจ็กต์: IllegalArgumentException.

Parameters

  • String name
  • Collection<GameTestInfo> gameTestInfos
  • Consumer<ServerLevel> beforeBatchFunction
  • Consumer<ServerLevel> afterBatchFunction

ตัวอย่างใช้งาน

Collection<GameTestInfo> gameTestInfos = ...;
Consumer<ServerLevel> beforeBatchFunction = ...;
Consumer<ServerLevel> afterBatchFunction = ...;
GameTestBatch instance = new GameTestBatch("value", gameTestInfos, beforeBatchFunction, afterBatchFunction);

GameTestBatchFactory

  • Full name: net.minecraft.gametest.framework.GameTestBatchFactory
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestBatchFactory.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestBatchFactory#fromGameTestInfo()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatchFactory.java:37
  • Modifiers: public static
  • Return: GameTestRunner.GameTestBatcher

คืออะไร

ดำเนินการ fromGameTestInfo ตาม implementation ของ GameTestBatchFactory

ทำงานยังไง

คืนค่า: fromGameTestInfo(50).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestRunner.GameTestBatcher result = GameTestBatchFactory.fromGameTestInfo();

net.minecraft.gametest.framework.GameTestBatchFactory#fromGameTestInfo(int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatchFactory.java:41
  • Modifiers: public static
  • Return: GameTestRunner.GameTestBatcher

คืออะไร

ดำเนินการ fromGameTestInfo ตาม implementation ของ GameTestBatchFactory

ทำงานยังไง

เรียกต่อ: stream(), filter(), collect(), groupingBy(), getTestFunction(), batchName(), entrySet(), flatMap(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • int i

ตัวอย่างใช้งาน

GameTestRunner.GameTestBatcher result = GameTestBatchFactory.fromGameTestInfo(0);

net.minecraft.gametest.framework.GameTestBatchFactory#fromTestFunction(Collection<TestFunction>,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatchFactory.java:16
  • Modifiers: public static
  • Return: Collection<GameTestBatch>

คืออะไร

ดำเนินการ fromTestFunction ตาม implementation ของ GameTestBatchFactory

ทำงานยังไง

เรียกต่อ: stream(), collect(), groupingBy(), entrySet(), flatMap(), getKey(), getValue(), mapWithIndex(). คืนค่า: map.entrySet() .stream() .flatMap( entry -> { String string = entry.getKey().

Parameters

  • Collection<TestFunction> collection
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

Collection<TestFunction> collection = ...;
ServerLevel serverLevel = ...;
Collection<GameTestBatch> result = GameTestBatchFactory.fromTestFunction(collection, serverLevel);

net.minecraft.gametest.framework.GameTestBatchFactory#toGameTestBatch(Collection<GameTestInfo>,String,long)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatchFactory.java:54
  • Modifiers: public static
  • Return: GameTestBatch

คืออะไร

ดำเนินการ toGameTestBatch ตาม implementation ของ GameTestBatchFactory

ทำงานยังไง

เรียกต่อ: getBeforeBatchFunction(), getAfterBatchFunction(). สร้างออบเจ็กต์: GameTestBatch. คืนค่า: new GameTestBatch(string + ":" + l, collection, consumer, consumer2).

Parameters

  • Collection<GameTestInfo> collection
  • String string
  • long l

ตัวอย่างใช้งาน

Collection<GameTestInfo> collection = ...;
GameTestBatch result = GameTestBatchFactory.toGameTestBatch(collection, "value", 0L);

net.minecraft.gametest.framework.GameTestBatchFactory#toGameTestInfo(TestFunction,int,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatchFactory.java:33
  • Modifiers: public static
  • Return: GameTestInfo

คืออะไร

ดำเนินการ toGameTestInfo ตาม implementation ของ GameTestBatchFactory

ทำงานยังไง

เรียกต่อ: getRotationForRotationSteps(), noRetries(). สร้างออบเจ็กต์: GameTestInfo. คืนค่า: new GameTestInfo(testFunction, StructureUtils.getRotationForRotationSteps(i), serverLevel, RetryOptions.noRetries()).

Parameters

  • TestFunction testFunction
  • int i
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

TestFunction testFunction = ...;
ServerLevel serverLevel = ...;
GameTestInfo result = GameTestBatchFactory.toGameTestInfo(testFunction, 0, serverLevel);

GameTestBatchListener

  • Full name: net.minecraft.gametest.framework.GameTestBatchListener
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestBatchListener.java
  • Type: interface
  • Modifiers: public

net.minecraft.gametest.framework.GameTestBatchListener#testBatchFinished(GameTestBatch)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatchListener.java:6
  • Modifiers: ``
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Batch Finished

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestBatch gameTestBatch

ตัวอย่างใช้งาน

GameTestBatchListener instance = ...;
GameTestBatch gameTestBatch = ...;
instance.testBatchFinished(gameTestBatch);

net.minecraft.gametest.framework.GameTestBatchListener#testBatchStarting(GameTestBatch)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestBatchListener.java:4
  • Modifiers: ``
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Batch Starting

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestBatch gameTestBatch

ตัวอย่างใช้งาน

GameTestBatchListener instance = ...;
GameTestBatch gameTestBatch = ...;
instance.testBatchStarting(gameTestBatch);

GameTestHelper

  • Full name: net.minecraft.gametest.framework.GameTestHelper
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestHelper.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestHelper#absoluteAABB(AABB)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:881
  • Modifiers: public
  • Return: AABB

คืออะไร

ดำเนินการ absoluteAABB ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: absoluteVec(), getMinPosition(), getMaxPosition(). สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(vec3, vec32).

Parameters

  • AABB aABB

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
AABB aABB = ...;
AABB result = instance.absoluteAABB(aABB);

net.minecraft.gametest.framework.GameTestHelper#absolutePos(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:868
  • Modifiers: public
  • Return: BlockPos

คืออะไร

ดำเนินการ absolutePos ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: getTestOrigin(), offset(), transform(), getRotation(). คืนค่า: StructureTemplate.transform(blockPos3, Mirror.NONE, this.testInfo.getRotation(), blockPos2).

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
BlockPos result = instance.absolutePos(blockPos);

net.minecraft.gametest.framework.GameTestHelper#absoluteVec(Vec3)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:893
  • Modifiers: public
  • Return: Vec3

คืออะไร

ดำเนินการ absoluteVec ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: atLowerCornerOf(), getTestOrigin(), transform(), add(), getRotation(). คืนค่า: StructureTemplate.transform(vec32.add(vec3), Mirror.NONE, this.testInfo.getRotation(), this.testInfo.getTestOrigin()).

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Vec3 vec3 = ...;
Vec3 result = instance.absoluteVec(vec3);

net.minecraft.gametest.framework.GameTestHelper#assertAtTickTimeContainerContains(long,BlockPos,Item)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:724
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertAtTickTimeContainerContains ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: runAtTickTime(), assertContainerContains().

Parameters

  • long l
  • BlockPos blockPos
  • Item item

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Item item = ...;
instance.assertAtTickTimeContainerContains(0L, blockPos, item);

net.minecraft.gametest.framework.GameTestHelper#assertAtTickTimeContainerEmpty(long,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:728
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertAtTickTimeContainerEmpty ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: runAtTickTime(), assertContainerEmpty().

Parameters

  • long l
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.assertAtTickTimeContainerEmpty(0L, blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertBlock(BlockPos,Predicate<Block>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:383
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlock ตาม implementation ของ GameTestHelper

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • BlockPos blockPos
  • Predicate<Block> predicate
  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Predicate<Block> predicate = ...;
instance.assertBlock(blockPos, predicate, "value");

net.minecraft.gametest.framework.GameTestHelper#assertBlock(BlockPos,Predicate<Block>,Supplier<String>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:387
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlock ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: assertBlockState(), test(), getBlock().

Parameters

  • BlockPos blockPos
  • Predicate<Block> predicate
  • Supplier<String> supplier

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Predicate<Block> predicate = ...;
Supplier<String> supplier = ...;
instance.assertBlock(blockPos, predicate, supplier);

net.minecraft.gametest.framework.GameTestHelper#assertBlockEntityData(BlockPos,Predicate<T>,Supplier<String>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:419
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockEntityData ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockEntity(), test(), get(), absolutePos(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • BlockPos blockPos
  • Predicate<T> predicate
  • Supplier<String> supplier

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Predicate<T> predicate = ...;
Supplier<String> supplier = ...;
instance.assertBlockEntityData(blockPos, predicate, supplier);

net.minecraft.gametest.framework.GameTestHelper#assertBlockNotPresent(Block,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:371
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: assertBlock(), getBlockState(), is(), getName(), getString().

Parameters

  • Block block
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Block block = ...;
BlockPos blockPos = ...;
instance.assertBlockNotPresent(block, blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertBlockNotPresent(Block,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:367
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • Block block
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Block block = ...;
instance.assertBlockNotPresent(block, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#assertBlockPresent(Block,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:362
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: getBlockState(), assertBlock(), is(), getName(), getString(), getBlock().

Parameters

  • Block block
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Block block = ...;
BlockPos blockPos = ...;
instance.assertBlockPresent(block, blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertBlockPresent(Block,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:358
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • Block block
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Block block = ...;
instance.assertBlockPresent(block, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#assertBlockProperty(BlockPos,Property<T>,Predicate<T>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:401
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockProperty ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertBlockState(), hasProperty(), getValue(), test(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • BlockPos blockPos
  • Property<T> property
  • Predicate<T> predicate
  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Property<T> property = ...;
Predicate<T> predicate = ...;
instance.assertBlockProperty(blockPos, property, predicate, "value");

net.minecraft.gametest.framework.GameTestHelper#assertBlockProperty(BlockPos,Property<T>,T)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:391
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockProperty ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), hasProperty(), getValue(), equals(), getName(), format(), absolutePos(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • BlockPos blockPos
  • Property<T> property
  • T comparable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Property<T> property = ...;
T comparable = ...;
instance.assertBlockProperty(blockPos, property, comparable);

net.minecraft.gametest.framework.GameTestHelper#assertBlockState(BlockPos,Predicate<BlockState>,Supplier<String>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:412
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertBlockState ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), test(), get(), absolutePos(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • BlockPos blockPos
  • Predicate<BlockState> predicate
  • Supplier<String> supplier

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Predicate<BlockState> predicate = ...;
Supplier<String> supplier = ...;
instance.assertBlockState(blockPos, predicate, supplier);

net.minecraft.gametest.framework.GameTestHelper#assertContainerContains(BlockPos,Item)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:696
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertContainerContains ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absolutePos(), getLevel(), getBlockEntity(), getKey(), getType(), countItem(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • BlockPos blockPos
  • Item item

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Item item = ...;
instance.assertContainerContains(blockPos, item);

net.minecraft.gametest.framework.GameTestHelper#assertContainerEmpty(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:688
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertContainerEmpty ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absolutePos(), getLevel(), getBlockEntity(), isEmpty(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.assertContainerEmpty(blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertEntitiesPresent(EntityType<?>,BlockPos,int,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:472
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntitiesPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absolutePos(), getEntities(), size(), toShortString(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • EntityType<?> entityType
  • BlockPos blockPos
  • int i
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
BlockPos blockPos = ...;
instance.assertEntitiesPresent(entityType, blockPos, 0, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#assertEntitiesPresent(EntityType<?>,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:465
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntitiesPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), getEntities(), getBounds(), size(), toShortString(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • EntityType<?> entityType
  • int i

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.assertEntitiesPresent(entityType, 0);

net.minecraft.gametest.framework.GameTestHelper#assertEntityData(BlockPos,EntityType<E>,Function<? super E, T>,T)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:641
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityData ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: absolutePos(), getLevel(), getEntities(), isEmpty(), toShortString(), getTick(), apply(), equals(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException, GameTestAssertException.

Parameters

  • BlockPos blockPos
  • EntityType<E> entityType
  • Function<? super E, T> function
  • T object

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
EntityType<E> entityType = ...;
Function<? super E, T> function = ...;
T object = ...;
instance.assertEntityData(blockPos, entityType, function, object);

net.minecraft.gametest.framework.GameTestHelper#assertEntityData(BlockPos,EntityType<E>,Predicate<E>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:627
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityData ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: absolutePos(), getLevel(), getEntities(), isEmpty(), toShortString(), getTick(), test(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException, GameTestAssertException.

Parameters

  • BlockPos blockPos
  • EntityType<E> entityType
  • Predicate<E> predicate

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
EntityType<E> entityType = ...;
Predicate<E> predicate = ...;
instance.assertEntityData(blockPos, entityType, predicate);

net.minecraft.gametest.framework.GameTestHelper#assertEntityInstancePresent(Entity,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:506
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityInstancePresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: absolutePos(), getLevel(), getEntities(), getType(), stream(), filter(), findFirst(), orElseThrow(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • Entity entity
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Entity entity = ...;
BlockPos blockPos = ...;
instance.assertEntityInstancePresent(entity, blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertEntityInstancePresent(Entity,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:502
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityInstancePresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • Entity entity
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Entity entity = ...;
instance.assertEntityInstancePresent(entity, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#assertEntityInventoryContains(BlockPos,EntityType<E>,Item)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:672
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityInventoryContains ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: absolutePos(), getLevel(), getEntities(), isAlive(), isEmpty(), toShortString(), getTick(), getInventory(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • BlockPos blockPos
  • EntityType<E> entityType
  • Item item

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
EntityType<E> entityType = ...;
Item item = ...;
instance.assertEntityInventoryContains(blockPos, entityType, item);

net.minecraft.gametest.framework.GameTestHelper#assertEntityIsHolding(BlockPos,EntityType<E>,Item)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:656
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityIsHolding ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: absolutePos(), getLevel(), getEntities(), isEmpty(), getTick(), isHolding(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • BlockPos blockPos
  • EntityType<E> entityType
  • Item item

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
EntityType<E> entityType = ...;
Item item = ...;
instance.assertEntityIsHolding(blockPos, entityType, item);

net.minecraft.gametest.framework.GameTestHelper#assertEntityNotPresent(EntityType<?>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:578
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), getEntities(), getBounds(), isEmpty(), toShortString(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • EntityType<?> entityType

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.assertEntityNotPresent(entityType);

net.minecraft.gametest.framework.GameTestHelper#assertEntityNotPresent(EntityType<?>,AABB)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:597
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absoluteAABB(), getLevel(), getEntities(), isEmpty(), toShortString(), containing(), getCenter(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • EntityType<?> entityType
  • AABB aABB

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
AABB aABB = ...;
instance.assertEntityNotPresent(entityType, aABB);

net.minecraft.gametest.framework.GameTestHelper#assertEntityNotPresent(EntityType<?>,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:589
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absolutePos(), getLevel(), getEntities(), isEmpty(), toShortString(), getTick(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • EntityType<?> entityType
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
BlockPos blockPos = ...;
instance.assertEntityNotPresent(entityType, blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertEntityNotPresent(EntityType<?>,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:585
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • EntityType<?> entityType
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.assertEntityNotPresent(entityType, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#assertEntityNotTouching(EntityType<?>,double,double,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:617
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityNotTouching ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absoluteVec(), getBoundingBox(), intersects(), getLevel(), getEntities(), getBounds(), isEmpty(), toShortString(). สร้างออบเจ็กต์: Vec3, GameTestAssertException.

Parameters

  • EntityType<?> entityType
  • double d
  • double e
  • double f

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.assertEntityNotTouching(entityType, 0.0D, 0.0D, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#assertEntityPosition(Entity,AABB,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:736
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityPosition ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: contains(), relativeVec(), position(), fail().

Parameters

  • Entity entity
  • AABB aABB
  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Entity entity = ...;
AABB aABB = ...;
instance.assertEntityPosition(entity, aABB, "value");

net.minecraft.gametest.framework.GameTestHelper#assertEntityPresent(EntityType<?>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:436
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), getEntities(), getBounds(), isEmpty(), toShortString(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • EntityType<?> entityType

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.assertEntityPresent(entityType);

net.minecraft.gametest.framework.GameTestHelper#assertEntityPresent(EntityType<?>,AABB)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:455
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absoluteAABB(), getLevel(), getEntities(), isEmpty(), toShortString(), containing(), getCenter(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • EntityType<?> entityType
  • AABB aABB

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
AABB aABB = ...;
instance.assertEntityPresent(entityType, aABB);

net.minecraft.gametest.framework.GameTestHelper#assertEntityPresent(EntityType<?>,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:447
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absolutePos(), getLevel(), getEntities(), isEmpty(), toShortString(), getTick(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • EntityType<?> entityType
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
BlockPos blockPos = ...;
instance.assertEntityPresent(entityType, blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertEntityPresent(EntityType<?>,BlockPos,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:485
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getEntities(), isEmpty(), absolutePos(), toShortString(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • EntityType<?> entityType
  • BlockPos blockPos
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
BlockPos blockPos = ...;
instance.assertEntityPresent(entityType, blockPos, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#assertEntityPresent(EntityType<?>,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:443
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • EntityType<?> entityType
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.assertEntityPresent(entityType, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#assertEntityProperty(E,Function<E, T>,String,T)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:748
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityProperty ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: apply(), equals(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • E entity
  • Function<E, T> function
  • String string
  • T object

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
E entity = ...;
Function<E, T> function = ...;
T object = ...;
instance.assertEntityProperty(entity, function, "value", object);

net.minecraft.gametest.framework.GameTestHelper#assertEntityProperty(E,Predicate<E>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:742
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityProperty ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: test(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • E entity
  • Predicate<E> predicate
  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
E entity = ...;
Predicate<E> predicate = ...;
instance.assertEntityProperty(entity, predicate, "value");

net.minecraft.gametest.framework.GameTestHelper#assertEntityTouching(EntityType<?>,double,double,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:607
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertEntityTouching ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absoluteVec(), getBoundingBox(), intersects(), getLevel(), getEntities(), getBounds(), isEmpty(), toShortString(). สร้างออบเจ็กต์: Vec3, GameTestAssertException.

Parameters

  • EntityType<?> entityType
  • double d
  • double e
  • double f

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.assertEntityTouching(entityType, 0.0D, 0.0D, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#assertFalse(boolean,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:919
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertFalse ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • boolean bl
  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.assertFalse(true, "value");

net.minecraft.gametest.framework.GameTestHelper#assertItemEntityCountIs(Item,BlockPos,double,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:515
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertItemEntityCountIs ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: absolutePos(), getLevel(), getEntities(), inflate(), getItem(), is(), getCount(), getName(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • Item item
  • BlockPos blockPos
  • double d
  • int i

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
BlockPos blockPos = ...;
instance.assertItemEntityCountIs(item, blockPos, 0.0D, 0);

net.minecraft.gametest.framework.GameTestHelper#assertItemEntityNotPresent(Item)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:569
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertItemEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getLevel(), getEntities(), getBounds(), getItem(), equals(), getName(), getString(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • Item item

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
instance.assertItemEntityNotPresent(item);

net.minecraft.gametest.framework.GameTestHelper#assertItemEntityNotPresent(Item,BlockPos,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:547
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertItemEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: absolutePos(), getLevel(), getEntities(), inflate(), getItem(), equals(), getName(), getString(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • Item item
  • BlockPos blockPos
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
BlockPos blockPos = ...;
instance.assertItemEntityNotPresent(item, blockPos, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#assertItemEntityPresent(Item)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:558
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertItemEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getLevel(), getEntities(), getBounds(), getItem(), equals(), getName(), getString(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • Item item

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
instance.assertItemEntityPresent(item);

net.minecraft.gametest.framework.GameTestHelper#assertItemEntityPresent(Item,BlockPos,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:534
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertItemEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: absolutePos(), getLevel(), getEntities(), inflate(), getItem(), equals(), getName(), getString(). สร้างออบเจ็กต์: AABB, GameTestAssertPosException.

Parameters

  • Item item
  • BlockPos blockPos
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
BlockPos blockPos = ...;
instance.assertItemEntityPresent(item, blockPos, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#assertLivingEntityHasMobEffect(LivingEntity,Holder<MobEffect>,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:755
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertLivingEntityHasMobEffect ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getEffect(), getAmplifier(), value(), getDescriptionId(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • LivingEntity livingEntity
  • Holder<MobEffect> holder
  • int i

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
LivingEntity livingEntity = ...;
Holder<MobEffect> holder = ...;
instance.assertLivingEntityHasMobEffect(livingEntity, holder, 0);

net.minecraft.gametest.framework.GameTestHelper#assertRedstoneSignal(BlockPos,Direction,IntPredicate,Supplier<String>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:426
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertRedstoneSignal ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absolutePos(), getLevel(), getBlockState(), getSignal(), test(), get(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • BlockPos blockPos
  • Direction direction
  • IntPredicate intPredicate
  • Supplier<String> supplier

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Direction direction = ...;
IntPredicate intPredicate = ...;
Supplier<String> supplier = ...;
instance.assertRedstoneSignal(blockPos, direction, intPredicate, supplier);

net.minecraft.gametest.framework.GameTestHelper#assertSameBlockState(BlockPos,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:716
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertSameBlockState ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getBlockState(), fail().

Parameters

  • BlockPos blockPos
  • BlockPos blockPos2

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
BlockPos blockPos2 = ...;
instance.assertSameBlockState(blockPos, blockPos2);

net.minecraft.gametest.framework.GameTestHelper#assertSameBlockStates(BoundingBox,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:709
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertSameBlockStates ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: betweenClosedStream(), forEach(), offset(), getX(), minX(), getY(), minY(), getZ().

Parameters

  • BoundingBox boundingBox
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BoundingBox boundingBox = ...;
BlockPos blockPos = ...;
instance.assertSameBlockStates(boundingBox, blockPos);

net.minecraft.gametest.framework.GameTestHelper#assertTrue(boolean,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:907
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertTrue ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • boolean bl
  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.assertTrue(true, "value");

net.minecraft.gametest.framework.GameTestHelper#assertValueEqual(N,N,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:913
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertValueEqual ตาม implementation ของ GameTestHelper

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: equals(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • N object
  • N object2
  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
N object = ...;
N object2 = ...;
instance.assertValueEqual(object, object2, "value");

net.minecraft.gametest.framework.GameTestHelper#destroyBlock(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:330
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ destroyBlock ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: getLevel(), absolutePos().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.destroyBlock(blockPos);

net.minecraft.gametest.framework.GameTestHelper#fail(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:852
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ fail ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • String string

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.fail("value");

net.minecraft.gametest.framework.GameTestHelper#fail(String,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:844
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ fail ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: absolutePos(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • String string
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.fail("value", blockPos);

net.minecraft.gametest.framework.GameTestHelper#fail(String,Entity)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:848
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ fail ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: blockPosition(), relativePos(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException.

Parameters

  • String string
  • Entity entity

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Entity entity = ...;
instance.fail("value", entity);

net.minecraft.gametest.framework.GameTestHelper#failIf(Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:856
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ failIf ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: createSequence(), thenWaitUntil(), thenFail(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.failIf(runnable);

net.minecraft.gametest.framework.GameTestHelper#failIfEver(Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:860
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ failIfEver ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: range(), getTick(), getTimeoutTicks(), forEach(), setRunAtTickTime().

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.failIfEver(runnable);

net.minecraft.gametest.framework.GameTestHelper#findClosestEntity(EntityType<E>,int,int,int,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:153
  • Modifiers: public
  • Return: E

คืออะไร

ค้นหา Closest Entity

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: findEntities(), isEmpty(), toShortString(), size(), absoluteVec(), sort(), position(), distanceTo(). สร้างออบเจ็กต์: GameTestAssertException, Vec3. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • EntityType<E> entityType
  • int i
  • int j
  • int k
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
E result = instance.findClosestEntity(entityType, 0, 0, 0, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#findEntities(EntityType<E>,int,int,int,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:174
  • Modifiers: public
  • Return: List<E>

คืออะไร

ค้นหา Entities

ทำงานยังไง

เรียกต่อ: atBottomCenterOf(). สร้างออบเจ็กต์: BlockPos. คืนค่า: this.findEntities(entityType, Vec3.atBottomCenterOf(new BlockPos(i, j, k)), d).

Parameters

  • EntityType<E> entityType
  • int i
  • int j
  • int k
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
List<E> result = instance.findEntities(entityType, 0, 0, 0, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#findEntities(EntityType<E>,Vec3,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:178
  • Modifiers: public
  • Return: List<E>

คืออะไร

ค้นหา Entities

ทำงานยังไง

เรียกต่อ: getLevel(), absoluteVec(), getStructureBounds(), add(), getEntities(), getBoundingBox(), intersects(), isAlive(). สร้างออบเจ็กต์: AABB. คืนค่า: serverLevel.getEntities(entityType, aABB, entity -> entity.getBoundingBox().intersects(aABB2) && entity.isAlive()).

Parameters

  • EntityType<E> entityType
  • Vec3 vec3
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
Vec3 vec3 = ...;
List<E> result = instance.findEntities(entityType, vec3, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#findOneEntity(EntityType<E>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:149
  • Modifiers: public
  • Return: E

คืออะไร

ค้นหา One Entity

ทำงานยังไง

เรียกต่อ: findClosestEntity(). คืนค่า: this.findClosestEntity(entityType, 0, 0, 0, 2.147483647E9).

Parameters

  • EntityType<E> entityType

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
E result = instance.findOneEntity(entityType);

net.minecraft.gametest.framework.GameTestHelper#forEveryBlockInStructure(Consumer<BlockPos>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:945
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ forEveryBlockInStructure ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: getRelativeBounds(), contract(), betweenClosedStream(), forEach().

Parameters

  • Consumer<BlockPos> consumer

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Consumer<BlockPos> consumer = ...;
instance.forEveryBlockInStructure(consumer);

net.minecraft.gametest.framework.GameTestHelper#GameTestHelper(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:72
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ GameTestHelper ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: testInfo.

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

GameTestInfo gameTestInfo = ...;
GameTestHelper instance = new GameTestHelper(gameTestInfo);

net.minecraft.gametest.framework.GameTestHelper#getBlockEntity(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:84
  • Modifiers: public
  • Return: T

คืออะไร

อ่านค่า Block Entity

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), absolutePos(), getTick(). สร้างออบเจ็กต์: GameTestAssertPosException. คืนค่า: (T)blockEntity.

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
T result = instance.getBlockEntity(blockPos);

net.minecraft.gametest.framework.GameTestHelper#getBlockState(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:80
  • Modifiers: public
  • Return: BlockState

คืออะไร

อ่านค่า Block State

ทำงานยังไง

เรียกต่อ: getLevel(), absolutePos(). คืนค่า: this.getLevel().getBlockState(this.absolutePos(blockPos)).

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
BlockState result = instance.getBlockState(blockPos);

net.minecraft.gametest.framework.GameTestHelper#getBounds()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:929
  • Modifiers: public
  • Return: AABB

คืออะไร

อ่านค่า Bounds

ทำงานยังไง

เรียกต่อ: getStructureBounds(). คืนค่า: this.testInfo.getStructureBounds().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
AABB result = instance.getBounds();

net.minecraft.gametest.framework.GameTestHelper#getEntities(EntityType<T>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:498
  • Modifiers: public
  • Return: List<T>

คืออะไร

อ่านค่า Entities

ทำงานยังไง

เรียกต่อ: getLevel(), getBounds(). คืนค่า: this.getLevel().getEntities(entityType, this.getBounds(), Entity::isAlive).

Parameters

  • EntityType<T> entityType

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<T> entityType = ...;
List<T> result = instance.getEntities(entityType);

net.minecraft.gametest.framework.GameTestHelper#getEntities(EntityType<T>,BlockPos,double)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:493
  • Modifiers: public
  • Return: List<T>

คืออะไร

อ่านค่า Entities

ทำงานยังไง

เรียกต่อ: absolutePos(), getLevel(), inflate(). สร้างออบเจ็กต์: AABB. คืนค่า: this.getLevel().getEntities(entityType, new AABB(blockPos2).inflate(d), Entity::isAlive).

Parameters

  • EntityType<T> entityType
  • BlockPos blockPos
  • double d

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<T> entityType = ...;
BlockPos blockPos = ...;
List<T> result = instance.getEntities(entityType, blockPos, 0.0D);

net.minecraft.gametest.framework.GameTestHelper#getHeight(Heightmap.Types,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:839
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Height

ทำงานยังไง

เรียกต่อ: absolutePos(), relativePos(), getLevel(), getHeightmapPos(), getY(). สร้างออบเจ็กต์: BlockPos. คืนค่า: this.relativePos(this.getLevel().getHeightmapPos(types, blockPos)).getY().

Parameters

  • Heightmap.Types types
  • int i
  • int j

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Heightmap.Types types = ...;
int result = instance.getHeight(types, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#getLevel()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:76
  • Modifiers: public
  • Return: ServerLevel

คืออะไร

อ่านค่า Level

ทำงานยังไง

คืนค่า: this.testInfo.getLevel().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
ServerLevel result = instance.getLevel();

net.minecraft.gametest.framework.GameTestHelper#getTestRotation()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:903
  • Modifiers: public
  • Return: Rotation

คืออะไร

อ่านค่า Test Rotation

ทำงานยังไง

เรียกต่อ: getRotation(). คืนค่า: this.testInfo.getRotation().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Rotation result = instance.getTestRotation();

net.minecraft.gametest.framework.GameTestHelper#getTick()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:925
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Tick

ทำงานยังไง

คืนค่า: this.testInfo.getTick().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
long result = instance.getTick();

net.minecraft.gametest.framework.GameTestHelper#hurt(Entity,DamageSource,float)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:141
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผลความเสียหาย hurt

ทำงานยังไง

เรียกต่อ: hurtServer(), getLevel().

Parameters

  • Entity entity
  • DamageSource damageSource
  • float f

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Entity entity = ...;
DamageSource damageSource = ...;
instance.hurt(entity, damageSource, 0.0F);

net.minecraft.gametest.framework.GameTestHelper#kill(Entity)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:145
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ kill ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: getLevel().

Parameters

  • Entity entity

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Entity entity = ...;
instance.kill(entity);

net.minecraft.gametest.framework.GameTestHelper#killAllEntities()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:93
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ killAllEntities ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: killAllEntitiesOfClass().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.killAllEntities();

net.minecraft.gametest.framework.GameTestHelper#killAllEntitiesOfClass(Class)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:97
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ killAllEntitiesOfClass ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: getBounds(), getLevel(), getEntitiesOfClass(), inflate(), forEach(), kill().

Parameters

  • Class class_

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Class class_ = ...;
instance.killAllEntitiesOfClass(class_);

net.minecraft.gametest.framework.GameTestHelper#makeAboutToDrown(LivingEntity)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:261
  • Modifiers: public
  • Return: LivingEntity

คืออะไร

สร้าง About To Drown

ทำงานยังไง

เรียกต่อ: setAirSupply(), setHealth(). คืนค่า: livingEntity.

Parameters

  • LivingEntity livingEntity

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
LivingEntity livingEntity = ...;
LivingEntity result = instance.makeAboutToDrown(livingEntity);

net.minecraft.gametest.framework.GameTestHelper#makeMockPlayer(GameType)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:272
  • Modifiers: public
  • Return: Player

คืออะไร

สร้าง Mock Player

ทำงานยังไง

เรียกต่อ: getLevel(), randomUUID(), isSpectator(), isCreative(), isLocalPlayer(). สร้างออบเจ็กต์: Player, GameProfile. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • GameType gameType

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
GameType gameType = ...;
Player result = instance.makeMockPlayer(gameType);

net.minecraft.gametest.framework.GameTestHelper#makeMockServerPlayerInLevel()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:291
  • Modifiers: public
  • Return: ServerPlayer

คืออะไร

สร้าง Mock Server Player In Level

ทำงานยังไง

เรียกต่อ: createInitial(), randomUUID(), getLevel(), getServer(), gameProfile(), clientInformation(), isSpectator(), isCreative(). สร้างออบเจ็กต์: GameProfile, ServerPlayer, Connection, EmbeddedChannel. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
ServerPlayer result = instance.makeMockServerPlayerInLevel();

net.minecraft.gametest.framework.GameTestHelper#moveTo(Mob,float,float,float)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:214
  • Modifiers: public
  • Return: void

คืออะไร

เคลื่อนที่ To

ทำงานยังไง

เรียกต่อ: absoluteVec(), getYRot(), getXRot(). สร้างออบเจ็กต์: Vec3.

Parameters

  • Mob mob
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Mob mob = ...;
instance.moveTo(mob, 0.0F, 0.0F, 0.0F);

net.minecraft.gametest.framework.GameTestHelper#onEachTick(Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:950
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Each Tick

ทำงานยังไง

เรียกต่อ: range(), getTick(), getTimeoutTicks(), forEach(), setRunAtTickTime().

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.onEachTick(runnable);

net.minecraft.gametest.framework.GameTestHelper#placeAt(Player,ItemStack,BlockPos,Direction)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:954
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ placeAt ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: absolutePos(), relative(), atCenterOf(), useOn(). สร้างออบเจ็กต์: BlockHitResult, UseOnContext.

Parameters

  • Player player
  • ItemStack itemStack
  • BlockPos blockPos
  • Direction direction

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Player player = ...;
ItemStack itemStack = ...;
BlockPos blockPos = ...;
Direction direction = ...;
instance.placeAt(player, itemStack, blockPos, direction);

net.minecraft.gametest.framework.GameTestHelper#pressButton(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:230
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ pressButton ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: assertBlockState(), is(), absolutePos(), getLevel(), getBlockState(), getBlock(), press().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.pressButton(blockPos);

net.minecraft.gametest.framework.GameTestHelper#pressButton(int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:226
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ pressButton ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.pressButton(0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#pullLever(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:317
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ pullLever ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: assertBlockPresent(), absolutePos(), getLevel(), getBlockState(), getBlock(), pull().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.pullLever(blockPos);

net.minecraft.gametest.framework.GameTestHelper#pullLever(int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:313
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ pullLever ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.pullLever(0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#pulseRedstone(BlockPos,long)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:325
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ pulseRedstone ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: setBlock(), runAfterDelay().

Parameters

  • BlockPos blockPos
  • long l

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.pulseRedstone(blockPos, 0L);

net.minecraft.gametest.framework.GameTestHelper#randomTick(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:814
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ randomTick ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: absolutePos(), getLevel(), getBlockState().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.randomTick(blockPos);

net.minecraft.gametest.framework.GameTestHelper#relativeAABB(AABB)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:887
  • Modifiers: public
  • Return: AABB

คืออะไร

ดำเนินการ relativeAABB ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: relativeVec(), getMinPosition(), getMaxPosition(). สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(vec3, vec32).

Parameters

  • AABB aABB

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
AABB aABB = ...;
AABB result = instance.relativeAABB(aABB);

net.minecraft.gametest.framework.GameTestHelper#relativePos(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:874
  • Modifiers: public
  • Return: BlockPos

คืออะไร

ดำเนินการ relativePos ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: getTestOrigin(), getRotation(), getRotated(), transform(), subtract(). คืนค่า: blockPos3.subtract(blockPos2).

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
BlockPos result = instance.relativePos(blockPos);

net.minecraft.gametest.framework.GameTestHelper#relativeVec(Vec3)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:898
  • Modifiers: public
  • Return: Vec3

คืออะไร

ดำเนินการ relativeVec ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: atLowerCornerOf(), getTestOrigin(), transform(), subtract(), getRotation(). คืนค่า: StructureTemplate.transform(vec3.subtract(vec32), Mirror.NONE, this.testInfo.getRotation(), this.testInfo.getTestOrigin()).

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Vec3 vec3 = ...;
Vec3 result = instance.relativeVec(vec3);

net.minecraft.gametest.framework.GameTestHelper#runAfterDelay(long,Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:810
  • Modifiers: public
  • Return: void

คืออะไร

สั่งทำงาน After Delay

ทำงานยังไง

เรียกต่อ: runAtTickTime(), getTick().

Parameters

  • long l
  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.runAfterDelay(0L, runnable);

net.minecraft.gametest.framework.GameTestHelper#runAtTickTime(long,Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:806
  • Modifiers: public
  • Return: void

คืออะไร

สั่งทำงาน At Tick Time

ทำงานยังไง

เรียกต่อ: setRunAtTickTime().

Parameters

  • long l
  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.runAtTickTime(0L, runnable);

net.minecraft.gametest.framework.GameTestHelper#setBiome(ResourceKey<Biome>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:961
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Biome

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getBounds(), containing(), fill(), getLevel(), registryAccess(), lookupOrThrow(), getOrThrow(), right().

Parameters

  • ResourceKey<Biome> resourceKey

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
ResourceKey<Biome> resourceKey = ...;
instance.setBiome(resourceKey);

net.minecraft.gametest.framework.GameTestHelper#setBlock(BlockPos,Block)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:342
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Block

ทำงานยังไง

เรียกต่อ: defaultBlockState().

Parameters

  • BlockPos blockPos
  • Block block

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Block block = ...;
instance.setBlock(blockPos, block);

net.minecraft.gametest.framework.GameTestHelper#setBlock(BlockPos,BlockState)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:346
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Block

ทำงานยังไง

เรียกต่อ: getLevel(), absolutePos().

Parameters

  • BlockPos blockPos
  • BlockState blockState

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
BlockState blockState = ...;
instance.setBlock(blockPos, blockState);

net.minecraft.gametest.framework.GameTestHelper#setBlock(int,int,int,Block)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:334
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Block

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • int i
  • int j
  • int k
  • Block block

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Block block = ...;
instance.setBlock(0, 0, 0, block);

net.minecraft.gametest.framework.GameTestHelper#setBlock(int,int,int,BlockState)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:338
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Block

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • int i
  • int j
  • int k
  • BlockState blockState

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockState blockState = ...;
instance.setBlock(0, 0, 0, blockState);

net.minecraft.gametest.framework.GameTestHelper#setDayTime(int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:354
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Day Time

ทำงานยังไง

เรียกต่อ: getLevel().

Parameters

  • int i

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.setDayTime(0);

net.minecraft.gametest.framework.GameTestHelper#setNight()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:350
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Night

ทำงานยังไง

เรียกต่อ: setDayTime().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.setNight();

net.minecraft.gametest.framework.GameTestHelper#spawn(EntityType<E>,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:120
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก spawn

ทำงานยังไง

เรียกต่อ: atBottomCenterOf(). คืนค่า: this.spawn(entityType, Vec3.atBottomCenterOf(blockPos)).

Parameters

  • EntityType<E> entityType
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
BlockPos blockPos = ...;
E result = instance.spawn(entityType, blockPos);

net.minecraft.gametest.framework.GameTestHelper#spawn(EntityType<E>,float,float,float)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:190
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก spawn

ทำงานยังไง

สร้างออบเจ็กต์: Vec3. คืนค่า: this.spawn(entityType, new Vec3(f, g, h)).

Parameters

  • EntityType<E> entityType
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
E result = instance.spawn(entityType, 0.0F, 0.0F, 0.0F);

net.minecraft.gametest.framework.GameTestHelper#spawn(EntityType<E>,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:186
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก spawn

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos. คืนค่า: this.spawn(entityType, new BlockPos(i, j, k)).

Parameters

  • EntityType<E> entityType
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
E result = instance.spawn(entityType, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#spawn(EntityType<E>,Vec3)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:124
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก spawn

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLevel(), create(), builtInRegistryHolder(), key(), location(), setPersistenceRequired(), absoluteVec(), moveTo(). สร้างออบเจ็กต์: NullPointerException. คืนค่า: entity.

Parameters

  • EntityType<E> entityType
  • Vec3 vec3

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
Vec3 vec3 = ...;
E result = instance.spawn(entityType, vec3);

net.minecraft.gametest.framework.GameTestHelper#spawnItem(Item,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:116
  • Modifiers: public
  • Return: ItemEntity

คืออะไร

สร้าง entity ในโลก Item

ทำงานยังไง

เรียกต่อ: getX(), getY(), getZ(). คืนค่า: this.spawnItem(item, blockPos.getX(), blockPos.getY(), blockPos.getZ()).

Parameters

  • Item item
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
BlockPos blockPos = ...;
ItemEntity result = instance.spawnItem(item, blockPos);

net.minecraft.gametest.framework.GameTestHelper#spawnItem(Item,float,float,float)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:112
  • Modifiers: public
  • Return: ItemEntity

คืออะไร

สร้าง entity ในโลก Item

ทำงานยังไง

สร้างออบเจ็กต์: Vec3. คืนค่า: this.spawnItem(item, new Vec3(f, g, h)).

Parameters

  • Item item
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
ItemEntity result = instance.spawnItem(item, 0.0F, 0.0F, 0.0F);

net.minecraft.gametest.framework.GameTestHelper#spawnItem(Item,Vec3)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:103
  • Modifiers: public
  • Return: ItemEntity

คืออะไร

สร้าง entity ในโลก Item

ทำงานยังไง

เรียกต่อ: getLevel(), absoluteVec(), setDeltaMovement(), addFreshEntity(). สร้างออบเจ็กต์: ItemEntity, ItemStack. คืนค่า: itemEntity.

Parameters

  • Item item
  • Vec3 vec3

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Item item = ...;
Vec3 vec3 = ...;
ItemEntity result = instance.spawnItem(item, vec3);

net.minecraft.gametest.framework.GameTestHelper#spawnWithNoFreeWill(EntityType<E>,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:194
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก With No Free Will

ทำงานยังไง

เรียกต่อ: spawn(), removeFreeWill(). คืนค่า: mob.

Parameters

  • EntityType<E> entityType
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
BlockPos blockPos = ...;
E result = instance.spawnWithNoFreeWill(entityType, blockPos);

net.minecraft.gametest.framework.GameTestHelper#spawnWithNoFreeWill(EntityType<E>,float,float,float)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:210
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก With No Free Will

ทำงานยังไง

สร้างออบเจ็กต์: Vec3. คืนค่า: this.spawnWithNoFreeWill(entityType, new Vec3(f, g, h)).

Parameters

  • EntityType<E> entityType
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
E result = instance.spawnWithNoFreeWill(entityType, 0.0F, 0.0F, 0.0F);

net.minecraft.gametest.framework.GameTestHelper#spawnWithNoFreeWill(EntityType<E>,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:200
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก With No Free Will

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos. คืนค่า: this.spawnWithNoFreeWill(entityType, new BlockPos(i, j, k)).

Parameters

  • EntityType<E> entityType
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
E result = instance.spawnWithNoFreeWill(entityType, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#spawnWithNoFreeWill(EntityType<E>,Vec3)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:204
  • Modifiers: public
  • Return: E

คืออะไร

สร้าง entity ในโลก With No Free Will

ทำงานยังไง

เรียกต่อ: spawn(), removeFreeWill(). คืนค่า: mob.

Parameters

  • EntityType<E> entityType
  • Vec3 vec3

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<E> entityType = ...;
Vec3 vec3 = ...;
E result = instance.spawnWithNoFreeWill(entityType, vec3);

net.minecraft.gametest.framework.GameTestHelper#startSequence()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:864
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

เริ่ม Sequence

ทำงานยังไง

เรียกต่อ: createSequence(). คืนค่า: this.testInfo.createSequence().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
GameTestSequence result = instance.startSequence();

net.minecraft.gametest.framework.GameTestHelper#succeed()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:779
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeed ตาม implementation ของ GameTestHelper

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.succeed();

net.minecraft.gametest.framework.GameTestHelper#succeedIf(Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:791
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedIf ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: ensureSingleFinalCheck(), createSequence(), thenWaitUntil(), thenSucceed().

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.succeedIf(runnable);

net.minecraft.gametest.framework.GameTestHelper#succeedOnTickWhen(int,Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:801
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedOnTickWhen ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: ensureSingleFinalCheck(), createSequence(), thenWaitUntil(), thenSucceed().

Parameters

  • int i
  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.succeedOnTickWhen(0, runnable);

net.minecraft.gametest.framework.GameTestHelper#succeedWhen(Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:796
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhen ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: ensureSingleFinalCheck(), createSequence(), thenWaitUntil(), thenSucceed().

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Runnable runnable = ...;
instance.succeedWhen(runnable);

net.minecraft.gametest.framework.GameTestHelper#succeedWhenBlockPresent(Block,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:379
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhenBlockPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: succeedWhen(), assertBlockPresent().

Parameters

  • Block block
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Block block = ...;
BlockPos blockPos = ...;
instance.succeedWhenBlockPresent(block, blockPos);

net.minecraft.gametest.framework.GameTestHelper#succeedWhenBlockPresent(Block,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:375
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhenBlockPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • Block block
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Block block = ...;
instance.succeedWhenBlockPresent(block, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#succeedWhenEntityData(BlockPos,EntityType<E>,Function<E, T>,T)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:732
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhenEntityData ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: succeedWhen(), assertEntityData().

Parameters

  • BlockPos blockPos
  • EntityType<E> entityType
  • Function<E, T> function
  • T object

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
EntityType<E> entityType = ...;
Function<E, T> function = ...;
T object = ...;
instance.succeedWhenEntityData(blockPos, entityType, function, object);

net.minecraft.gametest.framework.GameTestHelper#succeedWhenEntityNotPresent(EntityType<?>,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:775
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhenEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: succeedWhen(), assertEntityNotPresent().

Parameters

  • EntityType<?> entityType
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
BlockPos blockPos = ...;
instance.succeedWhenEntityNotPresent(entityType, blockPos);

net.minecraft.gametest.framework.GameTestHelper#succeedWhenEntityNotPresent(EntityType<?>,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:771
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhenEntityNotPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • EntityType<?> entityType
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.succeedWhenEntityNotPresent(entityType, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#succeedWhenEntityPresent(EntityType<?>,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:767
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhenEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: succeedWhen(), assertEntityPresent().

Parameters

  • EntityType<?> entityType
  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
BlockPos blockPos = ...;
instance.succeedWhenEntityPresent(entityType, blockPos);

net.minecraft.gametest.framework.GameTestHelper#succeedWhenEntityPresent(EntityType<?>,int,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:763
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeedWhenEntityPresent ตาม implementation ของ GameTestHelper

ทำงานยังไง

สร้างออบเจ็กต์: BlockPos.

Parameters

  • EntityType<?> entityType
  • int i
  • int j
  • int k

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
EntityType<?> entityType = ...;
instance.succeedWhenEntityPresent(entityType, 0, 0, 0);

net.minecraft.gametest.framework.GameTestHelper#tickPrecipitation()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:826
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick Precipitation

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getRelativeBounds(), floor(). สร้างออบเจ็กต์: BlockPos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
instance.tickPrecipitation();

net.minecraft.gametest.framework.GameTestHelper#tickPrecipitation(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:820
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick Precipitation

ทำงานยังไง

เรียกต่อ: absolutePos(), getLevel().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.tickPrecipitation(blockPos);

net.minecraft.gametest.framework.GameTestHelper#useBlock(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:238
  • Modifiers: public
  • Return: void

คืออะไร

ใช้งาน Block

ทำงานยังไง

เรียกต่อ: makeMockPlayer().

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
instance.useBlock(blockPos);

net.minecraft.gametest.framework.GameTestHelper#useBlock(BlockPos,Player)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:242
  • Modifiers: public
  • Return: void

คืออะไร

ใช้งาน Block

ทำงานยังไง

เรียกต่อ: absolutePos(), atCenterOf(). สร้างออบเจ็กต์: BlockHitResult.

Parameters

  • BlockPos blockPos
  • Player player

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Player player = ...;
instance.useBlock(blockPos, player);

net.minecraft.gametest.framework.GameTestHelper#useBlock(BlockPos,Player,BlockHitResult)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:247
  • Modifiers: public
  • Return: void

คืออะไร

ใช้งาน Block

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: absolutePos(), getLevel(), getBlockState(), useItemOn(), getItemInHand(), consumesAction(), useWithoutItem(), useOn(). สร้างออบเจ็กต์: UseOnContext.

Parameters

  • BlockPos blockPos
  • Player player
  • BlockHitResult blockHitResult

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
BlockPos blockPos = ...;
Player player = ...;
BlockHitResult blockHitResult = ...;
instance.useBlock(blockPos, player, blockHitResult);

net.minecraft.gametest.framework.GameTestHelper#walkTo(Mob,BlockPos,float)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:219
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

ดำเนินการ walkTo ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: startSequence(), thenExecuteAfter(), getNavigation(), createPath(), absolutePos(), moveTo(). คืนค่า: this.startSequence().thenExecuteAfter(2, () -> { Path path = mob.getNavigation().createPath(this.absolutePos(blockPos), 0).

Parameters

  • Mob mob
  • BlockPos blockPos
  • float f

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
Mob mob = ...;
BlockPos blockPos = ...;
GameTestSequence result = instance.walkTo(mob, blockPos, 0.0F);

net.minecraft.gametest.framework.GameTestHelper#withLowHealth(LivingEntity)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestHelper.java:267
  • Modifiers: public
  • Return: LivingEntity

คืออะไร

ดำเนินการ withLowHealth ตาม implementation ของ GameTestHelper

ทำงานยังไง

เรียกต่อ: setHealth(). คืนค่า: livingEntity.

Parameters

  • LivingEntity livingEntity

ตัวอย่างใช้งาน

GameTestHelper instance = ...;
LivingEntity livingEntity = ...;
LivingEntity result = instance.withLowHealth(livingEntity);

GameTestInfo

  • Full name: net.minecraft.gametest.framework.GameTestInfo
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestInfo.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestInfo#addListener(GameTestListener)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:262
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Listener

ทำงานยังไง

เรียกต่อ: add().

Parameters

  • GameTestListener gameTestListener

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
GameTestListener gameTestListener = ...;
instance.addListener(gameTestListener);

net.minecraft.gametest.framework.GameTestInfo#copyReset()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:330
  • Modifiers: public
  • Return: GameTestInfo

คืออะไร

คัดลอก Reset

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: retryOptions(), setNorthWestCorner(), setStructureBlockPos(). สร้างออบเจ็กต์: GameTestInfo. คืนค่า: gameTestInfo.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
GameTestInfo result = instance.copyReset();

net.minecraft.gametest.framework.GameTestInfo#fail(Throwable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:247
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ fail ตาม implementation ของ GameTestInfo

ทำงานยังไง

แก้ state: error. เรียกต่อ: finish().

Parameters

  • Throwable throwable

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
Throwable throwable = ...;
instance.fail(throwable);

net.minecraft.gametest.framework.GameTestInfo#GameTestInfo(TestFunction,Rotation,ServerLevel,RetryOptions)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:49
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ GameTestInfo ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: testFunction, level, retryOptions, timeoutTicks, rotation. เรียกต่อ: maxTicks(), rotation(), getRotated().

Parameters

  • TestFunction testFunction
  • Rotation rotation
  • ServerLevel serverLevel
  • RetryOptions retryOptions

ตัวอย่างใช้งาน

TestFunction testFunction = ...;
Rotation rotation = ...;
ServerLevel serverLevel = ...;
RetryOptions retryOptions = ...;
GameTestInfo instance = new GameTestInfo(testFunction, rotation, serverLevel, retryOptions);

net.minecraft.gametest.framework.GameTestInfo#getError()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:252
  • Modifiers: public
  • Return: Throwable

คืออะไร

อ่านค่า Error

ทำงานยังไง

คืนค่า: this.error.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
Throwable result = instance.getError();

net.minecraft.gametest.framework.GameTestInfo#getLevel()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:205
  • Modifiers: public
  • Return: ServerLevel

คืออะไร

อ่านค่า Level

ทำงานยังไง

คืนค่า: this.level.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
ServerLevel result = instance.getLevel();

net.minecraft.gametest.framework.GameTestInfo#getListeners()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:326
  • Modifiers: public
  • Return: Stream<GameTestListener>

คืออะไร

อ่านค่า Listeners

ทำงานยังไง

เรียกต่อ: stream(). คืนค่า: this.listeners.stream().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
Stream<GameTestListener> result = instance.getListeners();

net.minecraft.gametest.framework.GameTestInfo#getOrCalculateNorthwestCorner()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:343
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Or Calculate Northwest Corner

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: northWestCorner. เรียกต่อ: getStructureBoundingBox(), getStructureBlockEntity(), minX(), minY(), minZ(). สร้างออบเจ็กต์: BlockPos. คืนค่า: this.northWestCorner.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
BlockPos result = instance.getOrCalculateNorthwestCorner();

net.minecraft.gametest.framework.GameTestInfo#getRotation()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:298
  • Modifiers: public
  • Return: Rotation

คืออะไร

อ่านค่า Rotation

ทำงานยังไง

คืนค่า: this.rotation.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
Rotation result = instance.getRotation();

net.minecraft.gametest.framework.GameTestInfo#getRunTime()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:225
  • Modifiers: public
  • Return: long

คืออะไร

อ่านค่า Run Time

ทำงานยังไง

เรียกต่อ: elapsed(). คืนค่า: this.timer.elapsed(TimeUnit.MILLISECONDS).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
long result = instance.getRunTime();

net.minecraft.gametest.framework.GameTestInfo#getStructureBlockEntity()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:190
  • Modifiers: public
  • Return: StructureBlockEntity

คืออะไร

อ่านค่า Structure Block Entity

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: structureBlockEntity, structureBlockPos. เรียกต่อ: getBlockEntity(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: this.structureBlockEntity.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
StructureBlockEntity result = instance.getStructureBlockEntity();

net.minecraft.gametest.framework.GameTestInfo#getStructureBlockPos()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:176
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Structure Block Pos

ทำงานยังไง

คืนค่า: this.structureBlockPos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
BlockPos result = instance.getStructureBlockPos();

net.minecraft.gametest.framework.GameTestInfo#getStructureBounds()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:185
  • Modifiers: public
  • Return: AABB

คืออะไร

อ่านค่า Structure Bounds

ทำงานยังไง

เรียกต่อ: getStructureBlockEntity(). คืนค่า: StructureUtils.getStructureBounds(structureBlockEntity).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
AABB result = instance.getStructureBounds();

net.minecraft.gametest.framework.GameTestInfo#getStructureName()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:294
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Structure Name

ทำงานยังไง

เรียกต่อ: structureName(). คืนค่า: this.testFunction.structureName().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
String result = instance.getStructureName();

net.minecraft.gametest.framework.GameTestInfo#getTestFunction()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:302
  • Modifiers: public
  • Return: TestFunction

คืออะไร

อ่านค่า Test Function

ทำงานยังไง

คืนค่า: this.testFunction.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
TestFunction result = instance.getTestFunction();

net.minecraft.gametest.framework.GameTestInfo#getTestName()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:172
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Test Name

ทำงานยังไง

เรียกต่อ: testName(). คืนค่า: this.testFunction.testName().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
String result = instance.getTestName();

net.minecraft.gametest.framework.GameTestInfo#getTestOrigin()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:181
  • Modifiers: public
  • Return: BlockPos

คืออะไร

อ่านค่า Test Origin

ทำงานยังไง

เรียกต่อ: getStructureOrigin(). คืนค่า: StructureUtils.getStructureOrigin(this.structureBlockEntity).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
BlockPos result = instance.getTestOrigin();

net.minecraft.gametest.framework.GameTestInfo#getTimeoutTicks()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:306
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Timeout Ticks

ทำงานยังไง

คืนค่า: this.timeoutTicks.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
int result = instance.getTimeoutTicks();

net.minecraft.gametest.framework.GameTestInfo#hasFailed()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:213
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Failed

ทำงานยังไง

คืนค่า: this.error != null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
boolean result = instance.hasFailed();

net.minecraft.gametest.framework.GameTestInfo#hasStarted()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:217
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Started

ทำงานยังไง

คืนค่า: this.started.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
boolean result = instance.hasStarted();

net.minecraft.gametest.framework.GameTestInfo#hasSucceeded()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:209
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Succeeded

ทำงานยังไง

แก้ state: error. คืนค่า: this.done && this.error == null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
boolean result = instance.hasSucceeded();

net.minecraft.gametest.framework.GameTestInfo#isDone()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:221
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Done

ทำงานยังไง

คืนค่า: this.done.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
boolean result = instance.isDone();

net.minecraft.gametest.framework.GameTestInfo#isFlaky()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:310
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Flaky

ทำงานยังไง

คืนค่า: this.testFunction.isFlaky().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
boolean result = instance.isFlaky();

net.minecraft.gametest.framework.GameTestInfo#isOptional()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:290
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Optional

ทำงานยังไง

เรียกต่อ: required(). คืนค่า: !this.testFunction.required().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
boolean result = instance.isOptional();

net.minecraft.gametest.framework.GameTestInfo#isRequired()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:286
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Required

ทำงานยังไง

เรียกต่อ: required(). คืนค่า: this.testFunction.required().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
boolean result = instance.isRequired();

net.minecraft.gametest.framework.GameTestInfo#maxAttempts()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:314
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ maxAttempts ตาม implementation ของ GameTestInfo

ทำงานยังไง

คืนค่า: this.testFunction.maxAttempts().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
int result = instance.maxAttempts();

net.minecraft.gametest.framework.GameTestInfo#placeStructure()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:67
  • Modifiers: public
  • Return: GameTestInfo

คืออะไร

ดำเนินการ placeStructure ตาม implementation ของ GameTestInfo

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: ticksToWaitForChunkLoading, placedStructure. เรียกต่อ: getStructureBlockEntity(), getStructureBoundingBox(), getBlockTicks(), clearArea(), clearBlockEvents(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
GameTestInfo result = instance.placeStructure();

net.minecraft.gametest.framework.GameTestInfo#prepareTestStructure()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:266
  • Modifiers: public
  • Return: GameTestInfo

คืออะไร

ดำเนินการ prepareTestStructure ตาม implementation ของ GameTestInfo

ทำงานยังไง

แก้ state: structureBlockEntity, structureBlockPos. เรียกต่อ: getOrCalculateNorthwestCorner(), getRotation(), getBlockPos(), addCommandBlockAndButtonToStartTest(), encaseStructure(), getStructureBounds(), skyAccess(), forEach(). สร้างออบเจ็กต์: BlockPos. คืนค่า: this.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
GameTestInfo result = instance.prepareTestStructure();

net.minecraft.gametest.framework.GameTestInfo#requiredSuccesses()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:318
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ requiredSuccesses ตาม implementation ของ GameTestInfo

ทำงานยังไง

คืนค่า: this.testFunction.requiredSuccesses().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
int result = instance.requiredSuccesses();

net.minecraft.gametest.framework.GameTestInfo#retryOptions()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:322
  • Modifiers: public
  • Return: RetryOptions

คืออะไร

ดำเนินการ retryOptions ตาม implementation ของ GameTestInfo

ทำงานยังไง

คืนค่า: this.retryOptions.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
RetryOptions result = instance.retryOptions();

net.minecraft.gametest.framework.GameTestInfo#setNorthWestCorner(BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:352
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า North West Corner

ทำงานยังไง

แก้ state: northWestCorner.

Parameters

  • BlockPos blockPos

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
BlockPos blockPos = ...;
instance.setNorthWestCorner(blockPos);

net.minecraft.gametest.framework.GameTestInfo#setRunAtTickTime(long,Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:168
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Run At Tick Time

ทำงานยังไง

เรียกต่อ: put().

Parameters

  • long l
  • Runnable runnable

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
Runnable runnable = ...;
instance.setRunAtTickTime(0L, runnable);

net.minecraft.gametest.framework.GameTestInfo#startExecution(int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:61
  • Modifiers: public
  • Return: GameTestInfo

คืออะไร

เริ่ม Execution

ทำงานยังไง

แก้ state: startTick. เรียกต่อ: getGameTime(), setupTicks(), start(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
GameTestInfo result = instance.startExecution(0);

net.minecraft.gametest.framework.GameTestInfo#succeed()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:238
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ succeed ตาม implementation ของ GameTestInfo

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: error. เรียกต่อ: finish(), getStructureBounds(), getLevel(), getEntitiesOfClass(), inflate(), forEach(), remove().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
instance.succeed();

net.minecraft.gametest.framework.GameTestInfo#tick(GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:94
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: structureBlockEntity, chunksLoaded. เรียกต่อ: isDone(), fail(), getStructureBoundingBox(), intersectingChunks(), allMatch(), isPositionEntityTicking(), getWorldPosition(), ensureStructureIsPlaced(). สร้างออบเจ็กต์: IllegalStateException.

Parameters

  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
GameTestRunner gameTestRunner = ...;
instance.tick(gameTestRunner);

net.minecraft.gametest.framework.GameTestInfo#toString()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestInfo.java:257
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ GameTestInfo

ทำงานยังไง

เรียกต่อ: getTestName(). คืนค่า: this.getTestName().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestInfo instance = ...;
String result = instance.toString();

GameTestListener

  • Full name: net.minecraft.gametest.framework.GameTestListener
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestListener.java
  • Type: interface
  • Modifiers: public

net.minecraft.gametest.framework.GameTestListener#testAddedForRerun(GameTestInfo,GameTestInfo,GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestListener.java:10
  • Modifiers: ``
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Added For Rerun

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestInfo gameTestInfo
  • GameTestInfo gameTestInfo2
  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

GameTestListener instance = ...;
GameTestInfo gameTestInfo = ...;
GameTestInfo gameTestInfo2 = ...;
GameTestRunner gameTestRunner = ...;
instance.testAddedForRerun(gameTestInfo, gameTestInfo2, gameTestRunner);

net.minecraft.gametest.framework.GameTestListener#testFailed(GameTestInfo,GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestListener.java:8
  • Modifiers: ``
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Failed

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestInfo gameTestInfo
  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

GameTestListener instance = ...;
GameTestInfo gameTestInfo = ...;
GameTestRunner gameTestRunner = ...;
instance.testFailed(gameTestInfo, gameTestRunner);

net.minecraft.gametest.framework.GameTestListener#testPassed(GameTestInfo,GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestListener.java:6
  • Modifiers: ``
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Passed

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestInfo gameTestInfo
  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

GameTestListener instance = ...;
GameTestInfo gameTestInfo = ...;
GameTestRunner gameTestRunner = ...;
instance.testPassed(gameTestInfo, gameTestRunner);

net.minecraft.gametest.framework.GameTestListener#testStructureLoaded(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestListener.java:4
  • Modifiers: ``
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Structure Loaded

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

GameTestListener instance = ...;
GameTestInfo gameTestInfo = ...;
instance.testStructureLoaded(gameTestInfo);

GameTestRegistry

  • Full name: net.minecraft.gametest.framework.GameTestRegistry
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestRegistry.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestRegistry#findTestFunction(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:87
  • Modifiers: public static
  • Return: Optional<TestFunction>

คืออะไร

ค้นหา Test Function

ทำงานยังไง

เรียกต่อ: getAllTestFunctions(), stream(), filter(), testName(), equalsIgnoreCase(), findFirst(). คืนค่า: getAllTestFunctions().stream().filter(testFunction -> testFunction.testName().equalsIgnoreCase(string)).findFirst().

Parameters

  • String string

ตัวอย่างใช้งาน

Optional<TestFunction> result = GameTestRegistry.findTestFunction("value");

net.minecraft.gametest.framework.GameTestRegistry#forgetFailedTests()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:162
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ forgetFailedTests ตาม implementation ของ GameTestRegistry

ทำงานยังไง

เรียกต่อ: clear().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestRegistry.forgetFailedTests();

net.minecraft.gametest.framework.GameTestRegistry#getAfterBatchFunction(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:83
  • Modifiers: public static
  • Return: Consumer<ServerLevel>

คืออะไร

อ่านค่า After Batch Function

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: AFTER_BATCH_FUNCTIONS.getOrDefault(string, serverLevel -> {}).

Parameters

  • String string

ตัวอย่างใช้งาน

Consumer<ServerLevel> result = GameTestRegistry.getAfterBatchFunction("value");

net.minecraft.gametest.framework.GameTestRegistry#getAllTestClassNames()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:71
  • Modifiers: public static
  • Return: Collection<String>

คืออะไร

อ่านค่า All Test Class Names

ทำงานยังไง

คืนค่า: TEST_CLASS_NAMES.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Collection<String> result = GameTestRegistry.getAllTestClassNames();

net.minecraft.gametest.framework.GameTestRegistry#getAllTestFunctions()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:67
  • Modifiers: public static
  • Return: Collection<TestFunction>

คืออะไร

อ่านค่า All Test Functions

ทำงานยังไง

คืนค่า: TEST_FUNCTIONS.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Collection<TestFunction> result = GameTestRegistry.getAllTestFunctions();

net.minecraft.gametest.framework.GameTestRegistry#getBeforeBatchFunction(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:79
  • Modifiers: public static
  • Return: Consumer<ServerLevel>

คืออะไร

อ่านค่า Before Batch Function

ทำงานยังไง

เรียกต่อ: getOrDefault(). คืนค่า: BEFORE_BATCH_FUNCTIONS.getOrDefault(string, serverLevel -> {}).

Parameters

  • String string

ตัวอย่างใช้งาน

Consumer<ServerLevel> result = GameTestRegistry.getBeforeBatchFunction("value");

net.minecraft.gametest.framework.GameTestRegistry#getLastFailedTests()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:154
  • Modifiers: public static
  • Return: Stream<TestFunction>

คืออะไร

อ่านค่า Last Failed Tests

ทำงานยังไง

เรียกต่อ: stream(). คืนค่า: LAST_FAILED_TESTS.stream().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Stream<TestFunction> result = GameTestRegistry.getLastFailedTests();

net.minecraft.gametest.framework.GameTestRegistry#getTestFunction(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:91
  • Modifiers: public static
  • Return: TestFunction

คืออะไร

อ่านค่า Test Function

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: findTestFunction(), isEmpty(), get(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: optional.get().

Parameters

  • String string

ตัวอย่างใช้งาน

TestFunction result = GameTestRegistry.getTestFunction("value");

net.minecraft.gametest.framework.GameTestRegistry#getTestFunctionsForClassName(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:63
  • Modifiers: public static
  • Return: Stream<TestFunction>

คืออะไร

อ่านค่า Test Functions For Class Name

ทำงานยังไง

เรียกต่อ: stream(), filter(), isTestFunctionPartOfClass(). คืนค่า: TEST_FUNCTIONS.stream().filter(testFunction -> isTestFunctionPartOfClass(testFunction, string)).

Parameters

  • String string

ตัวอย่างใช้งาน

Stream<TestFunction> result = GameTestRegistry.getTestFunctionsForClassName("value");

net.minecraft.gametest.framework.GameTestRegistry#isTestClass(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:75
  • Modifiers: public static
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Test Class

ทำงานยังไง

เรียกต่อ: contains(). คืนค่า: TEST_CLASS_NAMES.contains(string).

Parameters

  • String string

ตัวอย่างใช้งาน

boolean result = GameTestRegistry.isTestClass("value");

net.minecraft.gametest.framework.GameTestRegistry#register(Class<?>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:28
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: stream(), getDeclaredMethods(), sorted(), comparing(), forEach().

Parameters

  • Class<?> class_

ตัวอย่างใช้งาน

Class<?> class_ = ...;
GameTestRegistry.register(class_);

net.minecraft.gametest.framework.GameTestRegistry#register(Method)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:32
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDeclaringClass(), getSimpleName(), getAnnotation(), add(), turnMethodIntoTestFunction(), addAll(), useTestGeneratorMethod(), registerBatchFunction().

Parameters

  • Method method

ตัวอย่างใช้งาน

Method method = ...;
GameTestRegistry.register(method);

net.minecraft.gametest.framework.GameTestRegistry#rememberFailedTest(TestFunction)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRegistry.java:158
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ rememberFailedTest ตาม implementation ของ GameTestRegistry

ทำงานยังไง

เรียกต่อ: add().

Parameters

  • TestFunction testFunction

ตัวอย่างใช้งาน

TestFunction testFunction = ...;
GameTestRegistry.rememberFailedTest(testFunction);

GameTestRunner

  • Full name: net.minecraft.gametest.framework.GameTestRunner
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestRunner.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestRunner#addListener(GameTestBatchListener)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:153
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Listener

ทำงานยังไง

เรียกต่อ: add().

Parameters

  • GameTestBatchListener gameTestBatchListener

ตัวอย่างใช้งาน

GameTestRunner instance = ...;
GameTestBatchListener gameTestBatchListener = ...;
instance.addListener(gameTestBatchListener);

net.minecraft.gametest.framework.GameTestRunner#clearMarkers(ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:167
  • Modifiers: public static
  • Return: void

คืออะไร

ล้าง Markers

ทำงานยังไง

เรียกต่อ: sendGameTestClearPacket().

Parameters

  • ServerLevel serverLevel

ตัวอย่างใช้งาน

ServerLevel serverLevel = ...;
GameTestRunner.clearMarkers(serverLevel);

net.minecraft.gametest.framework.GameTestRunner#GameTestRunner(GameTestRunner.GameTestBatcher,Collection<GameTestBatch>,ServerLevel,GameTestTicker,GameTestRunner.StructureSpawner,GameTestRunner.StructureSpawner,boolean)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:36
  • Modifiers: protected
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ GameTestRunner ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: level, testTicker, testBatcher, existingStructureSpawner, newStructureSpawner, batches. เรียกต่อ: copyOf(), stream(), flatMap(), gameTestInfos(), collect(), toMutableList(), setRunner(), forEach(). สร้างออบเจ็กต์: ReportGameListener.

Parameters

  • GameTestRunner.GameTestBatcher gameTestBatcher
  • Collection<GameTestBatch> collection
  • ServerLevel serverLevel
  • GameTestTicker gameTestTicker
  • GameTestRunner.StructureSpawner structureSpawner
  • GameTestRunner.StructureSpawner structureSpawner2
  • boolean bl

ตัวอย่างใช้งาน

GameTestRunner.GameTestBatcher gameTestBatcher = ...;
Collection<GameTestBatch> collection = ...;
ServerLevel serverLevel = ...;
GameTestTicker gameTestTicker = ...;
GameTestRunner.StructureSpawner structureSpawner = ...;
GameTestRunner.StructureSpawner structureSpawner2 = ...;
GameTestRunner instance = new GameTestRunner(gameTestBatcher, collection, serverLevel, gameTestTicker, structureSpawner, structureSpawner2, true);

net.minecraft.gametest.framework.GameTestRunner#getTestInfos()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:57
  • Modifiers: public
  • Return: List<GameTestInfo>

คืออะไร

อ่านค่า Test Infos

ทำงานยังไง

คืนค่า: this.allTestInfos.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestRunner instance = ...;
List<GameTestInfo> result = instance.getTestInfos();

net.minecraft.gametest.framework.GameTestRunner#rerunTest(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:73
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ rerunTest ตาม implementation ของ GameTestRunner

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: copyReset(), getListeners(), forEach(), testAddedForRerun(), add(), runScheduledRerunTests().

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

GameTestRunner instance = ...;
GameTestInfo gameTestInfo = ...;
instance.rerunTest(gameTestInfo);

net.minecraft.gametest.framework.GameTestRunner#start()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:61
  • Modifiers: public
  • Return: void

คืออะไร

เริ่ม start

ทำงานยังไง

แก้ state: stopped. เรียกต่อ: runBatch().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestRunner instance = ...;
instance.start();

net.minecraft.gametest.framework.GameTestRunner#stop()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:66
  • Modifiers: public
  • Return: void

คืออะไร

หยุด stop

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: stopped. เรียกต่อ: afterBatchFunction(), accept().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestRunner instance = ...;
instance.stop();

GameTestRunner$Builder

  • Full name: net.minecraft.gametest.framework.GameTestRunner$Builder
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestRunner.java
  • Type: class
  • Modifiers: public static

net.minecraft.gametest.framework.GameTestRunner$Builder#batcher(GameTestRunner.GameTestBatcher)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:208
  • Modifiers: public
  • Return: GameTestRunner.Builder

คืออะไร

ดำเนินการ batcher ตาม implementation ของ GameTestRunner$Builder

ทำงานยังไง

แก้ state: batcher. คืนค่า: this.

Parameters

  • GameTestRunner.GameTestBatcher gameTestBatcher

ตัวอย่างใช้งาน

GameTestRunner.Builder instance = ...;
GameTestRunner.GameTestBatcher gameTestBatcher = ...;
GameTestRunner.Builder result = instance.batcher(gameTestBatcher);

net.minecraft.gametest.framework.GameTestRunner$Builder#build()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:213
  • Modifiers: public
  • Return: GameTestRunner

คืออะไร

สร้าง build

ทำงานยังไง

สร้างออบเจ็กต์: GameTestRunner. คืนค่า: new GameTestRunner(this.batcher, this.batches, this.level, this.testTicker, this.existingStructureSpawner, this.newStructureSpawner, this.haltOnError).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestRunner.Builder instance = ...;
GameTestRunner result = instance.build();

net.minecraft.gametest.framework.GameTestRunner$Builder#existingStructureSpawner(StructureGridSpawner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:203
  • Modifiers: public
  • Return: GameTestRunner.Builder

คืออะไร

ดำเนินการ existingStructureSpawner ตาม implementation ของ GameTestRunner$Builder

ทำงานยังไง

แก้ state: existingStructureSpawner. คืนค่า: this.

Parameters

  • StructureGridSpawner structureGridSpawner

ตัวอย่างใช้งาน

GameTestRunner.Builder instance = ...;
StructureGridSpawner structureGridSpawner = ...;
GameTestRunner.Builder result = instance.existingStructureSpawner(structureGridSpawner);

net.minecraft.gametest.framework.GameTestRunner$Builder#fromBatches(Collection<GameTestBatch>,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:185
  • Modifiers: public static
  • Return: GameTestRunner.Builder

คืออะไร

ดำเนินการ fromBatches ตาม implementation ของ GameTestRunner$Builder

ทำงานยังไง

เรียกต่อ: Builder(). สร้างออบเจ็กต์: GameTestRunner.Builder. คืนค่า: new GameTestRunner.Builder(collection, serverLevel).

Parameters

  • Collection<GameTestBatch> collection
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

Collection<GameTestBatch> collection = ...;
ServerLevel serverLevel = ...;
GameTestRunner.Builder result = GameTestRunner.Builder.fromBatches(collection, serverLevel);

net.minecraft.gametest.framework.GameTestRunner$Builder#fromInfo(Collection<GameTestInfo>,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:189
  • Modifiers: public static
  • Return: GameTestRunner.Builder

คืออะไร

ดำเนินการ fromInfo ตาม implementation ของ GameTestRunner$Builder

ทำงานยังไง

เรียกต่อ: fromBatches(), fromGameTestInfo(), batch(). คืนค่า: fromBatches(GameTestBatchFactory.fromGameTestInfo().batch(collection), serverLevel).

Parameters

  • Collection<GameTestInfo> collection
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

Collection<GameTestInfo> collection = ...;
ServerLevel serverLevel = ...;
GameTestRunner.Builder result = GameTestRunner.Builder.fromInfo(collection, serverLevel);

net.minecraft.gametest.framework.GameTestRunner$Builder#haltOnError(boolean)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:193
  • Modifiers: public
  • Return: GameTestRunner.Builder

คืออะไร

ดำเนินการ haltOnError ตาม implementation ของ GameTestRunner$Builder

ทำงานยังไง

แก้ state: haltOnError. คืนค่า: this.

Parameters

  • boolean bl

ตัวอย่างใช้งาน

GameTestRunner.Builder instance = ...;
GameTestRunner.Builder result = instance.haltOnError(true);

net.minecraft.gametest.framework.GameTestRunner$Builder#newStructureSpawner(GameTestRunner.StructureSpawner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:198
  • Modifiers: public
  • Return: GameTestRunner.Builder

คืออะไร

ดำเนินการ newStructureSpawner ตาม implementation ของ GameTestRunner$Builder

ทำงานยังไง

แก้ state: newStructureSpawner. คืนค่า: this.

Parameters

  • GameTestRunner.StructureSpawner structureSpawner

ตัวอย่างใช้งาน

GameTestRunner.Builder instance = ...;
GameTestRunner.StructureSpawner structureSpawner = ...;
GameTestRunner.Builder result = instance.newStructureSpawner(structureSpawner);

GameTestRunner$GameTestBatcher

  • Full name: net.minecraft.gametest.framework.GameTestRunner$GameTestBatcher
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestRunner.java
  • Type: interface
  • Modifiers: public

net.minecraft.gametest.framework.GameTestRunner$GameTestBatcher#batch(Collection<GameTestInfo>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:219
  • Modifiers: ``
  • Return: Collection<GameTestBatch>

คืออะไร

ดำเนินการ batch ตาม implementation ของ GameTestRunner$GameTestBatcher

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • Collection<GameTestInfo> collection

ตัวอย่างใช้งาน

GameTestRunner.GameTestBatcher instance = ...;
Collection<GameTestInfo> collection = ...;
Collection<GameTestBatch> result = instance.batch(collection);

GameTestRunner$StructureSpawner

  • Full name: net.minecraft.gametest.framework.GameTestRunner$StructureSpawner
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestRunner.java
  • Type: interface
  • Modifiers: public

net.minecraft.gametest.framework.GameTestRunner$StructureSpawner#onBatchStart(ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:228
  • Modifiers: default
  • Return: void

คืออะไร

จัดการเหตุการณ์ Batch Start

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ServerLevel serverLevel

ตัวอย่างใช้งาน

GameTestRunner.StructureSpawner instance = ...;
ServerLevel serverLevel = ...;
instance.onBatchStart(serverLevel);

net.minecraft.gametest.framework.GameTestRunner$StructureSpawner#spawnStructure(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestRunner.java:226
  • Modifiers: ``
  • Return: Optional<GameTestInfo>

คืออะไร

สร้าง entity ในโลก Structure

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

GameTestRunner.StructureSpawner instance = ...;
GameTestInfo gameTestInfo = ...;
Optional<GameTestInfo> result = instance.spawnStructure(gameTestInfo);

GameTestSequence

  • Full name: net.minecraft.gametest.framework.GameTestSequence
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestSequence.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestSequence#thenExecute(Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:32
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

ดำเนินการ thenExecute ตาม implementation ของ GameTestSequence

ทำงานยังไง

เรียกต่อ: add(), create(), executeWithoutFail(). คืนค่า: this.

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
Runnable runnable = ...;
GameTestSequence result = instance.thenExecute(runnable);

net.minecraft.gametest.framework.GameTestSequence#thenExecuteAfter(int,Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:37
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

ดำเนินการ thenExecuteAfter ตาม implementation ของ GameTestSequence

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: add(), create(), getTick(), executeWithoutFail(). สร้างออบเจ็กต์: GameTestAssertException. คืนค่า: this.

Parameters

  • int i
  • Runnable runnable

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
Runnable runnable = ...;
GameTestSequence result = instance.thenExecuteAfter(0, runnable);

net.minecraft.gametest.framework.GameTestSequence#thenExecuteFor(int,Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:48
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

ดำเนินการ thenExecuteFor ตาม implementation ของ GameTestSequence

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: add(), create(), getTick(), executeWithoutFail(). สร้างออบเจ็กต์: GameTestAssertException. คืนค่า: this.

Parameters

  • int i
  • Runnable runnable

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
Runnable runnable = ...;
GameTestSequence result = instance.thenExecuteFor(0, runnable);

net.minecraft.gametest.framework.GameTestSequence#thenFail(Supplier<Exception>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:62
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ thenFail ตาม implementation ของ GameTestSequence

ทำงานยังไง

เรียกต่อ: add(), create(), fail(), get().

Parameters

  • Supplier<Exception> supplier

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
Supplier<Exception> supplier = ...;
instance.thenFail(supplier);

net.minecraft.gametest.framework.GameTestSequence#thenIdle(int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:28
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

ดำเนินการ thenIdle ตาม implementation ของ GameTestSequence

ทำงานยังไง

เรียกต่อ: thenExecuteAfter(). คืนค่า: this.thenExecuteAfter(i, () -> {}).

Parameters

  • int i

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
GameTestSequence result = instance.thenIdle(0);

net.minecraft.gametest.framework.GameTestSequence#thenSucceed()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:58
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ thenSucceed ตาม implementation ของ GameTestSequence

ทำงานยังไง

เรียกต่อ: add(), create().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
instance.thenSucceed();

net.minecraft.gametest.framework.GameTestSequence#thenTrigger()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:66
  • Modifiers: public
  • Return: GameTestSequence.Condition

คืออะไร

ดำเนินการ thenTrigger ตาม implementation ของ GameTestSequence

ทำงานยังไง

เรียกต่อ: Condition(), add(), create(), trigger(), getTick(). สร้างออบเจ็กต์: GameTestSequence.Condition. คืนค่า: condition.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
GameTestSequence.Condition result = instance.thenTrigger();

net.minecraft.gametest.framework.GameTestSequence#thenWaitUntil(long,Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:23
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

ดำเนินการ thenWaitUntil ตาม implementation ของ GameTestSequence

ทำงานยังไง

เรียกต่อ: add(), create(). คืนค่า: this.

Parameters

  • long l
  • Runnable runnable

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
Runnable runnable = ...;
GameTestSequence result = instance.thenWaitUntil(0L, runnable);

net.minecraft.gametest.framework.GameTestSequence#thenWaitUntil(Runnable)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:18
  • Modifiers: public
  • Return: GameTestSequence

คืออะไร

ดำเนินการ thenWaitUntil ตาม implementation ของ GameTestSequence

ทำงานยังไง

เรียกต่อ: add(), create(). คืนค่า: this.

Parameters

  • Runnable runnable

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
Runnable runnable = ...;
GameTestSequence result = instance.thenWaitUntil(runnable);

net.minecraft.gametest.framework.GameTestSequence#tickAndContinue(long)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:72
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick And Continue

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: tick().

Parameters

  • long l

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
instance.tickAndContinue(0L);

net.minecraft.gametest.framework.GameTestSequence#tickAndFailIfNotComplete(long)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:79
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick And Fail If Not Complete

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: tick(), fail().

Parameters

  • long l

ตัวอย่างใช้งาน

GameTestSequence instance = ...;
instance.tickAndFailIfNotComplete(0L);

GameTestSequence$Condition

  • Full name: net.minecraft.gametest.framework.GameTestSequence$Condition
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestSequence.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestSequence$Condition#assertTriggeredThisTick()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestSequence.java:124
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ assertTriggeredThisTick ตาม implementation ของ GameTestSequence$Condition

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: triggerTime. เรียกต่อ: getTick(), triggered(). สร้างออบเจ็กต์: GameTestAssertException.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestSequence.Condition instance = ...;
instance.assertTriggeredThisTick();

GameTestServer

  • Full name: net.minecraft.gametest.framework.GameTestServer
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestServer.java
  • Type: class
  • Modifiers: public
  • Extends: MinecraftServer

net.minecraft.gametest.framework.GameTestServer#create(Thread,LevelStorageSource.LevelStorageAccess,PackRepository,Collection<TestFunction>,BlockPos)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:77
  • Modifiers: public static
  • Return: GameTestServer

คืออะไร

สร้าง create

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. เรียกต่อ: isEmpty(), reload(), getAvailableIds(), of(), PackConfig(), InitConfig(), debug(), createStarted(). สร้างออบเจ็กต์: IllegalArgumentException, WorldDataConfiguration, DataPackConfig, ArrayList<>. คืนค่า: new GameTestServer(thread, levelStorageAccess, packRepository, worldStem, collection, blockPos).

Parameters

  • Thread thread
  • LevelStorageSource.LevelStorageAccess levelStorageAccess
  • PackRepository packRepository
  • Collection<TestFunction> collection
  • BlockPos blockPos

ตัวอย่างใช้งาน

Thread thread = ...;
LevelStorageSource.LevelStorageAccess levelStorageAccess = ...;
PackRepository packRepository = ...;
Collection<TestFunction> collection = ...;
BlockPos blockPos = ...;
GameTestServer result = GameTestServer.create(thread, levelStorageAccess, packRepository, collection, blockPos);

net.minecraft.gametest.framework.GameTestServer#fillServerSystemReport(SystemReport)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:215
  • Modifiers: public
  • Return: SystemReport

คืออะไร

ดำเนินการ fillServerSystemReport ตาม implementation ของ GameTestServer

ทำงานยังไง

เรียกต่อ: setDetail(). คืนค่า: systemReport.

Parameters

  • SystemReport systemReport

ตัวอย่างใช้งาน

GameTestServer instance = ...;
SystemReport systemReport = ...;
SystemReport result = instance.fillServerSystemReport(systemReport);

net.minecraft.gametest.framework.GameTestServer#getFunctionCompilationLevel()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:264
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Function Compilation Level

ทำงานยังไง

คืนค่า: 4.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
int result = instance.getFunctionCompilationLevel();

net.minecraft.gametest.framework.GameTestServer#getOperatorUserPermissionLevel()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:259
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Operator User Permission Level

ทำงานยังไง

คืนค่า: 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
int result = instance.getOperatorUserPermissionLevel();

net.minecraft.gametest.framework.GameTestServer#getRateLimitPacketsPerSecond()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:279
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Rate Limit Packets Per Second

ทำงานยังไง

คืนค่า: 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
int result = instance.getRateLimitPacketsPerSecond();

net.minecraft.gametest.framework.GameTestServer#getTickTimeLogger()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:200
  • Modifiers: public
  • Return: SampleLogger

คืออะไร

อ่านค่า Tick Time Logger

ทำงานยังไง

คืนค่า: this.sampleLogger.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
SampleLogger result = instance.getTickTimeLogger();

net.minecraft.gametest.framework.GameTestServer#initServer()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:152
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ initServer ตาม implementation ของ GameTestServer

ทำงานยังไง

แก้ state: testBatches. เรียกต่อ: setPlayerList(), registries(), loadLevel(), overworld(), newArrayList(), fromTestFunction(), setDefaultSpawnPos(), setWeatherParameters(). สร้างออบเจ็กต์: PlayerList. คืนค่า: true.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.initServer();

net.minecraft.gametest.framework.GameTestServer#isCommandBlockEnabled()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:289
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Command Block Enabled

ทำงานยังไง

คืนค่า: true.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.isCommandBlockEnabled();

net.minecraft.gametest.framework.GameTestServer#isDedicatedServer()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:274
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Dedicated Server

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.isDedicatedServer();

net.minecraft.gametest.framework.GameTestServer#isEpollEnabled()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:284
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Epoll Enabled

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.isEpollEnabled();

net.minecraft.gametest.framework.GameTestServer#isHardcore()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:254
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Hardcore

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.isHardcore();

net.minecraft.gametest.framework.GameTestServer#isPublished()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:294
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Published

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.isPublished();

net.minecraft.gametest.framework.GameTestServer#isSingleplayerOwner(GameProfile)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:304
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Singleplayer Owner

ทำงานยังไง

คืนค่า: false.

Parameters

  • GameProfile gameProfile

ตัวอย่างใช้งาน

GameTestServer instance = ...;
GameProfile gameProfile = ...;
boolean result = instance.isSingleplayerOwner(gameProfile);

net.minecraft.gametest.framework.GameTestServer#isTickTimeLoggingEnabled()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:205
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Tick Time Logging Enabled

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.isTickTimeLoggingEnabled();

net.minecraft.gametest.framework.GameTestServer#onServerCrash(CrashReport)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:228
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Server Crash

ทำงานยังไง

เรียกต่อ: error(), getFriendlyReport(), exit().

Parameters

  • CrashReport crashReport

ตัวอย่างใช้งาน

GameTestServer instance = ...;
CrashReport crashReport = ...;
instance.onServerCrash(crashReport);

net.minecraft.gametest.framework.GameTestServer#onServerExit()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:221
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Server Exit

ทำงานยังไง

เรียกต่อ: info(), exit(), getFailedRequiredCount().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
instance.onServerExit();

net.minecraft.gametest.framework.GameTestServer#shouldInformAdmins()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:299
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Inform Admins

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.shouldInformAdmins();

net.minecraft.gametest.framework.GameTestServer#shouldRconBroadcast()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:269
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่าควร Rcon Broadcast

ทำงานยังไง

คืนค่า: false.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
boolean result = instance.shouldRconBroadcast();

net.minecraft.gametest.framework.GameTestServer#tickServer(BooleanSupplier)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:165
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick Server

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: overworld(), haveTestsStarted(), startTests(), getGameTime(), info(), getProgressBar(), isDone(), halt().

Parameters

  • BooleanSupplier booleanSupplier

ตัวอย่างใช้งาน

GameTestServer instance = ...;
BooleanSupplier booleanSupplier = ...;
instance.tickServer(booleanSupplier);

net.minecraft.gametest.framework.GameTestServer#waitUntilNextTick()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestServer.java:210
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ waitUntilNextTick ตาม implementation ของ GameTestServer

ทำงานยังไง

เรียกต่อ: runAllTasks().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestServer instance = ...;
instance.waitUntilNextTick();

GameTestTicker

  • Full name: net.minecraft.gametest.framework.GameTestTicker
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestTicker.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GameTestTicker#add(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestTicker.java:17
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม add

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

GameTestTicker instance = ...;
GameTestInfo gameTestInfo = ...;
instance.add(gameTestInfo);

net.minecraft.gametest.framework.GameTestTicker#clear()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestTicker.java:21
  • Modifiers: public
  • Return: void

คืออะไร

ล้าง clear

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: runner. เรียกต่อ: stop().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestTicker instance = ...;
instance.clear();

net.minecraft.gametest.framework.GameTestTicker#setRunner(GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestTicker.java:29
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Runner

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: runner. เรียกต่อ: logAndPauseIfInIde().

Parameters

  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

GameTestTicker instance = ...;
GameTestRunner gameTestRunner = ...;
instance.setRunner(gameTestRunner);

net.minecraft.gametest.framework.GameTestTicker#tick()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestTicker.java:37
  • Modifiers: public
  • Return: void

คืออะไร

ประมวลผล tick tick

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: forEach(), removeIf().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GameTestTicker instance = ...;
instance.tick();

GameTestTimeoutException

  • Full name: net.minecraft.gametest.framework.GameTestTimeoutException
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GameTestTimeoutException.java
  • Type: class
  • Modifiers: public
  • Extends: RuntimeException

net.minecraft.gametest.framework.GameTestTimeoutException#GameTestTimeoutException(String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GameTestTimeoutException.java:4
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ GameTestTimeoutException ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • String string

ตัวอย่างใช้งาน

GameTestTimeoutException instance = new GameTestTimeoutException("value");

GlobalTestReporter

  • Full name: net.minecraft.gametest.framework.GlobalTestReporter
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/GlobalTestReporter.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.GlobalTestReporter#finish()

  • Origin: common
  • Source: net/minecraft/gametest/framework/GlobalTestReporter.java:18
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ finish ตาม implementation ของ GlobalTestReporter

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

GlobalTestReporter.finish();

net.minecraft.gametest.framework.GlobalTestReporter#onTestFailed(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GlobalTestReporter.java:10
  • Modifiers: public static
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Failed

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

GameTestInfo gameTestInfo = ...;
GlobalTestReporter.onTestFailed(gameTestInfo);

net.minecraft.gametest.framework.GlobalTestReporter#onTestSuccess(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GlobalTestReporter.java:14
  • Modifiers: public static
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Success

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

GameTestInfo gameTestInfo = ...;
GlobalTestReporter.onTestSuccess(gameTestInfo);

net.minecraft.gametest.framework.GlobalTestReporter#replaceWith(TestReporter)

  • Origin: common
  • Source: net/minecraft/gametest/framework/GlobalTestReporter.java:6
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ replaceWith ตาม implementation ของ GlobalTestReporter

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • TestReporter testReporter

ตัวอย่างใช้งาน

TestReporter testReporter = ...;
GlobalTestReporter.replaceWith(testReporter);

JUnitLikeTestReporter

  • Full name: net.minecraft.gametest.framework.JUnitLikeTestReporter
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/JUnitLikeTestReporter.java
  • Type: class
  • Modifiers: public
  • Implements: TestReporter

net.minecraft.gametest.framework.JUnitLikeTestReporter#finish()

  • Origin: common
  • Source: net/minecraft/gametest/framework/JUnitLikeTestReporter.java:60
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ finish ตาม implementation ของ JUnitLikeTestReporter

ทำงานยังไง

มีการจัดการ exception. เรียกต่อ: stop(), setAttribute(), valueOf(), elapsed(), save(). สร้างออบเจ็กต์: Error.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

JUnitLikeTestReporter instance = ...;
instance.finish();

net.minecraft.gametest.framework.JUnitLikeTestReporter#JUnitLikeTestReporter(File)

  • Origin: common
  • Source: net/minecraft/gametest/framework/JUnitLikeTestReporter.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ JUnitLikeTestReporter ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: destination, document, testSuite, stopwatch. เรียกต่อ: newInstance(), newDocumentBuilder(), newDocument(), createElement(), appendChild(), setAttribute(), format(), now().

Parameters

  • File file

Throws

  • ParserConfigurationException

ตัวอย่างใช้งาน

File file = ...;
JUnitLikeTestReporter instance = new JUnitLikeTestReporter(file);

net.minecraft.gametest.framework.JUnitLikeTestReporter#onTestFailed(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/JUnitLikeTestReporter.java:44
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Failed

ทำงานยังไง

เรียกต่อ: getTestName(), getError(), getMessage(), createElement(), isRequired(), setAttribute(), getTestOrigin(), toShortString().

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

JUnitLikeTestReporter instance = ...;
GameTestInfo gameTestInfo = ...;
instance.onTestFailed(gameTestInfo);

net.minecraft.gametest.framework.JUnitLikeTestReporter#onTestSuccess(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/JUnitLikeTestReporter.java:54
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Success

ทำงานยังไง

เรียกต่อ: getTestName(), createTestCase().

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

JUnitLikeTestReporter instance = ...;
GameTestInfo gameTestInfo = ...;
instance.onTestSuccess(gameTestInfo);

net.minecraft.gametest.framework.JUnitLikeTestReporter#save(File)

  • Origin: common
  • Source: net/minecraft/gametest/framework/JUnitLikeTestReporter.java:72
  • Modifiers: public
  • Return: void

คืออะไร

บันทึก save

ทำงานยังไง

เรียกต่อ: newInstance(), newTransformer(), transform(). สร้างออบเจ็กต์: DOMSource, StreamResult.

Parameters

  • File file

Throws

  • TransformerException

ตัวอย่างใช้งาน

JUnitLikeTestReporter instance = ...;
File file = ...;
instance.save(file);

LogTestReporter

  • Full name: net.minecraft.gametest.framework.LogTestReporter
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/LogTestReporter.java
  • Type: class
  • Modifiers: public
  • Implements: TestReporter

net.minecraft.gametest.framework.LogTestReporter#onTestFailed(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/LogTestReporter.java:10
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Failed

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getTestOrigin(), toShortString(), isRequired(), error(), getTestName(), describeError(), getError(), warn().

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

LogTestReporter instance = ...;
GameTestInfo gameTestInfo = ...;
instance.onTestFailed(gameTestInfo);

net.minecraft.gametest.framework.LogTestReporter#onTestSuccess(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/LogTestReporter.java:20
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Success

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

LogTestReporter instance = ...;
GameTestInfo gameTestInfo = ...;
instance.onTestSuccess(gameTestInfo);

MultipleTestTracker

  • Full name: net.minecraft.gametest.framework.MultipleTestTracker
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/MultipleTestTracker.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.MultipleTestTracker#addFailureListener(Consumer<GameTestInfo>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:34
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Failure Listener

ทำงานยังไง

เรียกต่อ: addListener(), testStructureLoaded(), testPassed(), testFailed(), accept(), testAddedForRerun(). สร้างออบเจ็กต์: GameTestListener.

Parameters

  • Consumer<GameTestInfo> consumer

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
Consumer<GameTestInfo> consumer = ...;
instance.addFailureListener(consumer);

net.minecraft.gametest.framework.MultipleTestTracker#addListener(GameTestListener)

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:29
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Listener

ทำงานยังไง

เรียกต่อ: add(), forEach().

Parameters

  • GameTestListener gameTestListener

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
GameTestListener gameTestListener = ...;
instance.addListener(gameTestListener);

net.minecraft.gametest.framework.MultipleTestTracker#addTestToTrack(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:24
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Test To Track

ทำงานยังไง

เรียกต่อ: add(), forEach().

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
GameTestInfo gameTestInfo = ...;
instance.addTestToTrack(gameTestInfo);

net.minecraft.gametest.framework.MultipleTestTracker#getDoneCount()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:63
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Done Count

ทำงานยังไง

เรียกต่อ: stream(), filter(), count(). คืนค่า: (int)this.tests.stream().filter(GameTestInfo::isDone).count().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
int result = instance.getDoneCount();

net.minecraft.gametest.framework.MultipleTestTracker#getFailedOptional()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:79
  • Modifiers: public
  • Return: Collection<GameTestInfo>

คืออะไร

อ่านค่า Failed Optional

ทำงานยังไง

เรียกต่อ: stream(), filter(), collect(), toList(). คืนค่า: this.tests.stream().filter(GameTestInfo::hasFailed).filter(GameTestInfo::isOptional).collect(Collectors.toList()).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
Collection<GameTestInfo> result = instance.getFailedOptional();

net.minecraft.gametest.framework.MultipleTestTracker#getFailedOptionalCount()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:59
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Failed Optional Count

ทำงานยังไง

เรียกต่อ: stream(), filter(), count(). คืนค่า: (int)this.tests.stream().filter(GameTestInfo::hasFailed).filter(GameTestInfo::isOptional).count().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
int result = instance.getFailedOptionalCount();

net.minecraft.gametest.framework.MultipleTestTracker#getFailedRequired()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:75
  • Modifiers: public
  • Return: Collection<GameTestInfo>

คืออะไร

อ่านค่า Failed Required

ทำงานยังไง

เรียกต่อ: stream(), filter(), collect(), toList(). คืนค่า: this.tests.stream().filter(GameTestInfo::hasFailed).filter(GameTestInfo::isRequired).collect(Collectors.toList()).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
Collection<GameTestInfo> result = instance.getFailedRequired();

net.minecraft.gametest.framework.MultipleTestTracker#getFailedRequiredCount()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:55
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Failed Required Count

ทำงานยังไง

เรียกต่อ: stream(), filter(), count(). คืนค่า: (int)this.tests.stream().filter(GameTestInfo::hasFailed).filter(GameTestInfo::isRequired).count().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
int result = instance.getFailedRequiredCount();

net.minecraft.gametest.framework.MultipleTestTracker#getProgressBar()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:91
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Progress Bar

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: append(), forEach(), hasStarted(), hasSucceeded(), hasFailed(), isRequired(), toString(). สร้างออบเจ็กต์: StringBuffer. คืนค่า: stringBuffer.toString().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
String result = instance.getProgressBar();

net.minecraft.gametest.framework.MultipleTestTracker#getTotalCount()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:83
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Total Count

ทำงานยังไง

เรียกต่อ: size(). คืนค่า: this.tests.size().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
int result = instance.getTotalCount();

net.minecraft.gametest.framework.MultipleTestTracker#hasFailedOptional()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:71
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Failed Optional

ทำงานยังไง

เรียกต่อ: getFailedOptionalCount(). คืนค่า: this.getFailedOptionalCount() > 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
boolean result = instance.hasFailedOptional();

net.minecraft.gametest.framework.MultipleTestTracker#hasFailedRequired()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:67
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Failed Required

ทำงานยังไง

เรียกต่อ: getFailedRequiredCount(). คืนค่า: this.getFailedRequiredCount() > 0.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
boolean result = instance.hasFailedRequired();

net.minecraft.gametest.framework.MultipleTestTracker#isDone()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:87
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Done

ทำงานยังไง

เรียกต่อ: getDoneCount(), getTotalCount(). คืนค่า: this.getDoneCount() == this.getTotalCount().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
boolean result = instance.isDone();

net.minecraft.gametest.framework.MultipleTestTracker#MultipleTestTracker()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:17
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MultipleTestTracker ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = new MultipleTestTracker();

net.minecraft.gametest.framework.MultipleTestTracker#MultipleTestTracker(Collection<GameTestInfo>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MultipleTestTracker ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

เรียกต่อ: addAll().

Parameters

  • Collection<GameTestInfo> collection

ตัวอย่างใช้งาน

Collection<GameTestInfo> collection = ...;
MultipleTestTracker instance = new MultipleTestTracker(collection);

net.minecraft.gametest.framework.MultipleTestTracker#remove(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:114
  • Modifiers: public
  • Return: void

คืออะไร

ลบ remove

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
GameTestInfo gameTestInfo = ...;
instance.remove(gameTestInfo);

net.minecraft.gametest.framework.MultipleTestTracker#toString()

  • Origin: common
  • Source: net/minecraft/gametest/framework/MultipleTestTracker.java:109
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ MultipleTestTracker

ทำงานยังไง

เรียกต่อ: getProgressBar(). คืนค่า: this.getProgressBar().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MultipleTestTracker instance = ...;
String result = instance.toString();

RetryOptions

  • Full name: net.minecraft.gametest.framework.RetryOptions
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/RetryOptions.java
  • Type: record
  • Modifiers: public

net.minecraft.gametest.framework.RetryOptions#hasRetries()

  • Origin: common
  • Source: net/minecraft/gametest/framework/RetryOptions.java:20
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Retries

ทำงานยังไง

คืนค่า: this.numberOfTries != 1.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RetryOptions instance = ...;
boolean result = instance.hasRetries();

net.minecraft.gametest.framework.RetryOptions#hasTriesLeft(int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/RetryOptions.java:14
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี Tries Left

ทำงานยังไง

เรียกต่อ: unlimitedTries(). คืนค่า: bl2 && (!bl || !this.haltOnFailure).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

RetryOptions instance = ...;
boolean result = instance.hasTriesLeft(0, 0);

net.minecraft.gametest.framework.RetryOptions#noRetries()

  • Origin: common
  • Source: net/minecraft/gametest/framework/RetryOptions.java:6
  • Modifiers: public static
  • Return: RetryOptions

คืออะไร

ดำเนินการ noRetries ตาม implementation ของ RetryOptions

ทำงานยังไง

คืนค่า: NO_RETRIES.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RetryOptions result = RetryOptions.noRetries();

net.minecraft.gametest.framework.RetryOptions#unlimitedTries()

  • Origin: common
  • Source: net/minecraft/gametest/framework/RetryOptions.java:10
  • Modifiers: public
  • Return: boolean

คืออะไร

ดำเนินการ unlimitedTries ตาม implementation ของ RetryOptions

ทำงานยังไง

คืนค่า: this.numberOfTries < 1.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

RetryOptions instance = ...;
boolean result = instance.unlimitedTries();

StructureBlockPosFinder

  • Full name: net.minecraft.gametest.framework.StructureBlockPosFinder
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/StructureBlockPosFinder.java
  • Type: interface
  • Modifiers: public

net.minecraft.gametest.framework.StructureBlockPosFinder#findStructureBlockPos()

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureBlockPosFinder.java:8
  • Modifiers: ``
  • Return: Stream<BlockPos>

คืออะไร

ค้นหา Structure Block Pos

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

StructureBlockPosFinder instance = ...;
Stream<BlockPos> result = instance.findStructureBlockPos();

StructureGridSpawner

  • Full name: net.minecraft.gametest.framework.StructureGridSpawner
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/StructureGridSpawner.java
  • Type: class
  • Modifiers: public
  • Implements: GameTestRunner.StructureSpawner

net.minecraft.gametest.framework.StructureGridSpawner#onBatchStart(ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureGridSpawner.java:31
  • Modifiers: public
  • Return: void

คืออะไร

จัดการเหตุการณ์ Batch Start

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: rowBounds. เรียกต่อ: forEach(), getStructureBoundingBox(), getStructureBlockEntity(), clearSpaceForStructure(), clear(), set(). สร้างออบเจ็กต์: AABB.

Parameters

  • ServerLevel serverLevel

ตัวอย่างใช้งาน

StructureGridSpawner instance = ...;
ServerLevel serverLevel = ...;
instance.onBatchStart(serverLevel);

net.minecraft.gametest.framework.StructureGridSpawner#spawnStructure(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureGridSpawner.java:44
  • Modifiers: public
  • Return: Optional<GameTestInfo>

คืออะไร

สร้าง entity ในโลก Structure

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: rowBounds, maxX, currentRowCount. เรียกต่อ: setNorthWestCorner(), prepareTestStructure(), getStructureBounds(), getStructureBlockEntity(), minmax(), move(), getXsize(), getX(). สร้างออบเจ็กต์: BlockPos, AABB. คืนค่า: Optional.of(gameTestInfo).

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

StructureGridSpawner instance = ...;
GameTestInfo gameTestInfo = ...;
Optional<GameTestInfo> result = instance.spawnStructure(gameTestInfo);

net.minecraft.gametest.framework.StructureGridSpawner#StructureGridSpawner(BlockPos,int,boolean)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureGridSpawner.java:23
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ StructureGridSpawner ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: testsPerRow, nextTestNorthWestCorner, rowBounds, firstTestNorthWestCorner, clearOnBatch. เรียกต่อ: mutable(). สร้างออบเจ็กต์: AABB.

Parameters

  • BlockPos blockPos
  • int i
  • boolean bl

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
StructureGridSpawner instance = new StructureGridSpawner(blockPos, 0, true);

StructureUtils

  • Full name: net.minecraft.gametest.framework.StructureUtils
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/StructureUtils.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.StructureUtils#addCommandBlockAndButtonToStartTest(BlockPos,BlockPos,Rotation,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:83
  • Modifiers: public static
  • Return: void

คืออะไร

เพิ่ม Command Block And Button To Start Test

ทำงานยังไง

เรียกต่อ: transform(), offset(), setBlockAndUpdate(), defaultBlockState(), getBlockEntity(), getCommandBlock(), setCommand(), rotate().

Parameters

  • BlockPos blockPos
  • BlockPos blockPos2
  • Rotation rotation
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
BlockPos blockPos2 = ...;
Rotation rotation = ...;
ServerLevel serverLevel = ...;
StructureUtils.addCommandBlockAndButtonToStartTest(blockPos, blockPos2, rotation, serverLevel);

net.minecraft.gametest.framework.StructureUtils#clearSpaceForStructure(BoundingBox,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:180
  • Modifiers: public static
  • Return: void

คืออะไร

ล้าง Space For Structure

ทำงานยังไง

เรียกต่อ: minY(), minX(), minZ(), maxX(), maxY(), maxZ(), betweenClosedStream(), forEach(). สร้างออบเจ็กต์: BoundingBox.

Parameters

  • BoundingBox boundingBox
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

BoundingBox boundingBox = ...;
ServerLevel serverLevel = ...;
StructureUtils.clearSpaceForStructure(boundingBox, serverLevel);

net.minecraft.gametest.framework.StructureUtils#createNewEmptyStructureBlock(String,BlockPos,Vec3i,Rotation,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:92
  • Modifiers: public static
  • Return: void

คืออะไร

สร้าง New Empty Structure Block

ทำงานยังไง

เรียกต่อ: getStructureBoundingBox(), above(), clearSpaceForStructure(), setBlockAndUpdate(), defaultBlockState(), getBlockEntity(), setIgnoreEntities(), setStructureName().

Parameters

  • String string
  • BlockPos blockPos
  • Vec3i vec3i
  • Rotation rotation
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
Vec3i vec3i = ...;
Rotation rotation = ...;
ServerLevel serverLevel = ...;
StructureUtils.createNewEmptyStructureBlock("value", blockPos, vec3i, rotation, serverLevel);

net.minecraft.gametest.framework.StructureUtils#encaseStructure(AABB,ServerLevel,boolean)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:140
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ encaseStructure ตาม implementation ของ StructureUtils

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: containing(), offset(), betweenClosedStream(), forEach(), getX(), getZ(), getY(), setBlockAndUpdate().

Parameters

  • AABB aABB
  • ServerLevel serverLevel
  • boolean bl

ตัวอย่างใช้งาน

AABB aABB = ...;
ServerLevel serverLevel = ...;
StructureUtils.encaseStructure(aABB, serverLevel, true);

net.minecraft.gametest.framework.StructureUtils#findNearestStructureBlock(BlockPos,int,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:210
  • Modifiers: public static
  • Return: Optional<BlockPos>

คืออะไร

ค้นหา Nearest Structure Block

ทำงานยังไง

เรียกต่อ: comparingInt(), distManhattan(), findStructureBlocks(), min(). คืนค่า: findStructureBlocks(blockPos, i, serverLevel).min(comparator).

Parameters

  • BlockPos blockPos
  • int i
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevel serverLevel = ...;
Optional<BlockPos> result = StructureUtils.findNearestStructureBlock(blockPos, 0, serverLevel);

net.minecraft.gametest.framework.StructureUtils#findStructureBlockContainingPos(BlockPos,int,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:206
  • Modifiers: public static
  • Return: Optional<BlockPos>

คืออะไร

ค้นหา Structure Block Containing Pos

ทำงานยังไง

เรียกต่อ: findStructureBlocks(), filter(), doesStructureContain(), findFirst(). คืนค่า: findStructureBlocks(blockPos, i, serverLevel).filter(blockPos2 -> doesStructureContain(blockPos2, blockPos, serverLevel)).findFirst().

Parameters

  • BlockPos blockPos
  • int i
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevel serverLevel = ...;
Optional<BlockPos> result = StructureUtils.findStructureBlockContainingPos(blockPos, 0, serverLevel);

net.minecraft.gametest.framework.StructureUtils#findStructureBlocks(BlockPos,int,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:224
  • Modifiers: public static
  • Return: Stream<BlockPos>

คืออะไร

ค้นหา Structure Blocks

ทำงานยังไง

เรียกต่อ: getBoundingBoxAtGround(), betweenClosedStream(), filter(), getBlockState(), is(), map(). คืนค่า: BlockPos.betweenClosedStream(boundingBox) .filter(blockPosx -> serverLevel.getBlockState(blockPosx).is(Blocks.STRUCTURE_BLOCK)) .map(BlockPos::immutable).

Parameters

  • BlockPos blockPos
  • int i
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevel serverLevel = ...;
Stream<BlockPos> result = StructureUtils.findStructureBlocks(blockPos, 0, serverLevel);

net.minecraft.gametest.framework.StructureUtils#findStructureByTestFunction(BlockPos,int,ServerLevel,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:215
  • Modifiers: public static
  • Return: Stream<BlockPos>

คืออะไร

ค้นหา Structure By Test Function

ทำงานยังไง

เรียกต่อ: findStructureBlocks(), map(), getBlockEntity(), filter(), equals(), getStructureName().

Parameters

  • BlockPos blockPos
  • int i
  • ServerLevel serverLevel
  • String string

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
ServerLevel serverLevel = ...;
Stream<BlockPos> result = StructureUtils.findStructureByTestFunction(blockPos, 0, serverLevel, "value");

net.minecraft.gametest.framework.StructureUtils#getRotationForRotationSteps(int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:39
  • Modifiers: public static
  • Return: Rotation

คืออะไร

อ่านค่า Rotation For Rotation Steps

ทำงานยังไง

แยกกรณีด้วย switch. สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 4 จุด.

Parameters

  • int i

ตัวอย่างใช้งาน

Rotation result = StructureUtils.getRotationForRotationSteps(0);

net.minecraft.gametest.framework.StructureUtils#getRotationStepsForRotation(Rotation)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:54
  • Modifiers: public static
  • Return: int

คืออะไร

อ่านค่า Rotation Steps For Rotation

ทำงานยังไง

แยกกรณีด้วย switch. สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 4 จุด.

Parameters

  • Rotation rotation

ตัวอย่างใช้งาน

Rotation rotation = ...;
int result = StructureUtils.getRotationStepsForRotation(rotation);

net.minecraft.gametest.framework.StructureUtils#getStartCorner(GameTestInfo,BlockPos,Rotation,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:105
  • Modifiers: public static
  • Return: BlockPos

คืออะไร

อ่านค่า Start Corner

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getStructureManager(), get(), parse(), getStructureName(), orElseThrow(), getSize(), offset(), getZ(). สร้างออบเจ็กต์: IllegalStateException, IllegalArgumentException. คืนค่า: blockPos2.

Parameters

  • GameTestInfo gameTestInfo
  • BlockPos blockPos
  • Rotation rotation
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

GameTestInfo gameTestInfo = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
ServerLevel serverLevel = ...;
BlockPos result = StructureUtils.getStartCorner(gameTestInfo, blockPos, rotation, serverLevel);

net.minecraft.gametest.framework.StructureUtils#getStructureBoundingBox(BlockPos,Vec3i,Rotation)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:198
  • Modifiers: public static
  • Return: BoundingBox

คืออะไร

อ่านค่า Structure Bounding Box

ทำงานยังไง

เรียกต่อ: getTransformedFarCorner(), fromCorners(), min(), minX(), maxX(), minZ(), maxZ(), move(). คืนค่า: boundingBox.move(blockPos.getX() - i, 0, blockPos.getZ() - j).

Parameters

  • BlockPos blockPos
  • Vec3i vec3i
  • Rotation rotation

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
Vec3i vec3i = ...;
Rotation rotation = ...;
BoundingBox result = StructureUtils.getStructureBoundingBox(blockPos, vec3i, rotation);

net.minecraft.gametest.framework.StructureUtils#getStructureBoundingBox(StructureBlockEntity)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:73
  • Modifiers: public static
  • Return: BoundingBox

คืออะไร

อ่านค่า Structure Bounding Box

ทำงานยังไง

เรียกต่อ: getStructureOrigin(), getTransformedFarCorner(), getStructureSize(), getRotation(), fromCorners(). คืนค่า: BoundingBox.fromCorners(blockPos, blockPos2).

Parameters

  • StructureBlockEntity structureBlockEntity

ตัวอย่างใช้งาน

StructureBlockEntity structureBlockEntity = ...;
BoundingBox result = StructureUtils.getStructureBoundingBox(structureBlockEntity);

net.minecraft.gametest.framework.StructureUtils#getStructureBounds(StructureBlockEntity)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:69
  • Modifiers: public static
  • Return: AABB

คืออะไร

อ่านค่า Structure Bounds

ทำงานยังไง

เรียกต่อ: of(), getStructureBoundingBox(). คืนค่า: AABB.of(getStructureBoundingBox(structureBlockEntity)).

Parameters

  • StructureBlockEntity structureBlockEntity

ตัวอย่างใช้งาน

StructureBlockEntity structureBlockEntity = ...;
AABB result = StructureUtils.getStructureBounds(structureBlockEntity);

net.minecraft.gametest.framework.StructureUtils#getStructureOrigin(StructureBlockEntity)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:79
  • Modifiers: public static
  • Return: BlockPos

คืออะไร

อ่านค่า Structure Origin

ทำงานยังไง

เรียกต่อ: getBlockPos(), offset(), getStructurePos(). คืนค่า: structureBlockEntity.getBlockPos().offset(structureBlockEntity.getStructurePos()).

Parameters

  • StructureBlockEntity structureBlockEntity

ตัวอย่างใช้งาน

StructureBlockEntity structureBlockEntity = ...;
BlockPos result = StructureUtils.getStructureOrigin(structureBlockEntity);

net.minecraft.gametest.framework.StructureUtils#getTransformedFarCorner(BlockPos,Vec3i,Rotation)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:193
  • Modifiers: public static
  • Return: BlockPos

คืออะไร

อ่านค่า Transformed Far Corner

ทำงานยังไง

เรียกต่อ: offset(), transform(). คืนค่า: StructureTemplate.transform(blockPos2, Mirror.NONE, rotation, blockPos).

Parameters

  • BlockPos blockPos
  • Vec3i vec3i
  • Rotation rotation

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
Vec3i vec3i = ...;
Rotation rotation = ...;
BlockPos result = StructureUtils.getTransformedFarCorner(blockPos, vec3i, rotation);

net.minecraft.gametest.framework.StructureUtils#lookedAtStructureBlockPos(BlockPos,Entity,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:251
  • Modifiers: public static
  • Return: Stream<BlockPos>

คืออะไร

ดำเนินการ lookedAtStructureBlockPos ตาม implementation ของ StructureUtils

ทำงานยังไง

เรียกต่อ: getEyePosition(), add(), getLookAngle(), scale(), findStructureBlocks(), map(), getBlockEntity(), flatMap().

Parameters

  • BlockPos blockPos
  • Entity entity
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

BlockPos blockPos = ...;
Entity entity = ...;
ServerLevel serverLevel = ...;
Stream<BlockPos> result = StructureUtils.lookedAtStructureBlockPos(blockPos, entity, serverLevel);

net.minecraft.gametest.framework.StructureUtils#prepareTestStructure(GameTestInfo,BlockPos,Rotation,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:128
  • Modifiers: public static
  • Return: StructureBlockEntity

คืออะไร

ดำเนินการ prepareTestStructure ตาม implementation ของ StructureUtils

ทำงานยังไง

เรียกต่อ: getStructureManager(), get(), parse(), getStructureName(), orElseThrow(), getSize(), getStructureBoundingBox(), getStartCorner(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: createStructureBlock(gameTestInfo, blockPos2.below(), rotation, serverLevel).

Parameters

  • GameTestInfo gameTestInfo
  • BlockPos blockPos
  • Rotation rotation
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

GameTestInfo gameTestInfo = ...;
BlockPos blockPos = ...;
Rotation rotation = ...;
ServerLevel serverLevel = ...;
StructureBlockEntity result = StructureUtils.prepareTestStructure(gameTestInfo, blockPos, rotation, serverLevel);

net.minecraft.gametest.framework.StructureUtils#removeBarriers(AABB,ServerLevel)

  • Origin: common
  • Source: net/minecraft/gametest/framework/StructureUtils.java:158
  • Modifiers: public static
  • Return: void

คืออะไร

ลบ Barriers

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: containing(), offset(), betweenClosedStream(), forEach(), getX(), getZ(), getY(), getBlockState().

Parameters

  • AABB aABB
  • ServerLevel serverLevel

ตัวอย่างใช้งาน

AABB aABB = ...;
ServerLevel serverLevel = ...;
StructureUtils.removeBarriers(aABB, serverLevel);

TestClassNameArgument

  • Full name: net.minecraft.gametest.framework.TestClassNameArgument
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestClassNameArgument.java
  • Type: class
  • Modifiers: public
  • Implements: ArgumentType<String>

net.minecraft.gametest.framework.TestClassNameArgument#getExamples()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestClassNameArgument.java:44
  • Modifiers: public
  • Return: Collection<String>

คืออะไร

อ่านค่า Examples

ทำงานยังไง

คืนค่า: EXAMPLES.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestClassNameArgument instance = ...;
Collection<String> result = instance.getExamples();

net.minecraft.gametest.framework.TestClassNameArgument#getTestClassName(CommandContext<CommandSourceStack>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestClassNameArgument.java:35
  • Modifiers: public static
  • Return: String

คืออะไร

อ่านค่า Test Class Name

ทำงานยังไง

เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, String.class).

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • String string

ตัวอย่างใช้งาน

CommandContext<CommandSourceStack> commandContext = ...;
String result = TestClassNameArgument.getTestClassName(commandContext, "value");

net.minecraft.gametest.framework.TestClassNameArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestClassNameArgument.java:39
  • Modifiers: public
  • Return: CompletableFuture<Suggestions>

คืออะไร

ดำเนินการ listSuggestions ตาม implementation ของ TestClassNameArgument

ทำงานยังไง

เรียกต่อ: suggest(), getAllTestClassNames(), stream(). คืนค่า: SharedSuggestionProvider.suggest(GameTestRegistry.getAllTestClassNames().stream(), suggestionsBuilder).

Parameters

  • CommandContext<S> commandContext
  • SuggestionsBuilder suggestionsBuilder

ตัวอย่างใช้งาน

TestClassNameArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);

net.minecraft.gametest.framework.TestClassNameArgument#parse(StringReader)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestClassNameArgument.java:21
  • Modifiers: public
  • Return: String

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: readUnquotedString(), isTestClass(), literal(). สร้างออบเจ็กต์: CommandSyntaxException, SimpleCommandExceptionType. คืนค่า: string.

Parameters

  • StringReader stringReader

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

TestClassNameArgument instance = ...;
StringReader stringReader = ...;
String result = instance.parse(stringReader);

net.minecraft.gametest.framework.TestClassNameArgument#testClassName()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestClassNameArgument.java:31
  • Modifiers: public static
  • Return: TestClassNameArgument

คืออะไร

ทดสอบเงื่อนไข Class Name

ทำงานยังไง

สร้างออบเจ็กต์: TestClassNameArgument. คืนค่า: new TestClassNameArgument().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestClassNameArgument result = TestClassNameArgument.testClassName();

TestCommand

  • Full name: net.minecraft.gametest.framework.TestCommand
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestCommand.java
  • Type: class
  • Modifiers: public

net.minecraft.gametest.framework.TestCommand#register(CommandDispatcher<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:129
  • Modifiers: public static
  • Return: void

คืออะไร

ลงทะเบียน register

ทำงานยังไง

เรียกต่อ: runWithRetryOptionsAndBuildInfo(), argument(), bool(), failedTests(), getBool(), testClassName(), allTestsInClass(), getTestClassName().

Parameters

  • CommandDispatcher<CommandSourceStack> commandDispatcher

ตัวอย่างใช้งาน

CommandDispatcher<CommandSourceStack> commandDispatcher = ...;
TestCommand.register(commandDispatcher);

TestCommand$Runner

  • Full name: net.minecraft.gametest.framework.TestCommand$Runner
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestCommand.java
  • Type: class
  • Modifiers: public static

net.minecraft.gametest.framework.TestCommand$Runner#clear()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:478
  • Modifiers: public
  • Return: int

คืออะไร

ล้าง clear

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: stopTests(), source(), getLevel(), clearMarkers(), logAndRun(), findStructureBlockPos(), getBlockEntity(), getStructureBoundingBox(). มีจุด return อย่างน้อย 3 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
int result = instance.clear();

net.minecraft.gametest.framework.TestCommand$Runner#export()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:501
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ export ตาม implementation ของ TestCommand$Runner

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: source(), getLevel(), logAndRun(), findStructureBlockPos(), getBlockEntity(), say(), setFalse(), saveAndExportTestStructure(). สร้างออบเจ็กต์: MutableBoolean. มีจุด return อย่างน้อย 3 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
int result = instance.export();

net.minecraft.gametest.framework.TestCommand$Runner#locate()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:608
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ locate ตาม implementation ของ TestCommand$Runner

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: say(), source(), containing(), getPosition(), findStructureBlockPos(), forEach(), getLevel(), getBlockEntity(). สร้างออบเจ็กต์: MutableInt, ClickEvent, HoverEvent. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
int result = instance.locate();

net.minecraft.gametest.framework.TestCommand$Runner#reset()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:462
  • Modifiers: public
  • Return: int

คืออะไร

รีเซ็ต reset

ทำงานยังไง

เรียกต่อ: stopTests(), toGameTestInfos(), source(), noRetries(), map(), toList(), isEmpty(). คืนค่า: TestCommand.toGameTestInfos(this.finder.source(), RetryOptions.noRetries(), this.finder).map(TestCommand::resetGameTestInfo).toList().isEmpty() ? 0 : 1.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
int result = instance.reset();

net.minecraft.gametest.framework.TestCommand$Runner#run()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:604
  • Modifiers: public
  • Return: int

คืออะไร

สั่งทำงาน run

ทำงานยังไง

เรียกต่อ: noRetries(). คืนค่า: this.run(RetryOptions.noRetries()).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
int result = instance.run();

net.minecraft.gametest.framework.TestCommand$Runner#run(int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:592
  • Modifiers: public
  • Return: int

คืออะไร

สั่งทำงาน run

ทำงานยังไง

เรียกต่อ: noRetries(). คืนค่า: this.run(RetryOptions.noRetries(), i, 8).

Parameters

  • int i

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
int result = instance.run(0);

net.minecraft.gametest.framework.TestCommand$Runner#run(int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:588
  • Modifiers: public
  • Return: int

คืออะไร

สั่งทำงาน run

ทำงานยังไง

เรียกต่อ: noRetries(). คืนค่า: this.run(RetryOptions.noRetries(), i, j).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
int result = instance.run(0, 0);

net.minecraft.gametest.framework.TestCommand$Runner#run(RetryOptions)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:600
  • Modifiers: public
  • Return: int

คืออะไร

สั่งทำงาน run

ทำงานยังไง

คืนค่า: this.run(retryOptions, 0, 8).

Parameters

  • RetryOptions retryOptions

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
RetryOptions retryOptions = ...;
int result = instance.run(retryOptions);

net.minecraft.gametest.framework.TestCommand$Runner#run(RetryOptions,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:596
  • Modifiers: public
  • Return: int

คืออะไร

สั่งทำงาน run

ทำงานยังไง

คืนค่า: this.run(retryOptions, i, 8).

Parameters

  • RetryOptions retryOptions
  • int i

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
RetryOptions retryOptions = ...;
int result = instance.run(retryOptions, 0);

net.minecraft.gametest.framework.TestCommand$Runner#run(RetryOptions,int,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:565
  • Modifiers: public
  • Return: int

คืออะไร

สั่งทำงาน run

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: stopTests(), source(), getLevel(), createTestPositionAround(), concat(), toGameTestInfos(), toGameTestInfo(), toList(). สร้างออบเจ็กต์: StructureGridSpawner. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • RetryOptions retryOptions
  • int i
  • int j

ตัวอย่างใช้งาน

TestCommand.Runner instance = ...;
RetryOptions retryOptions = ...;
int result = instance.run(retryOptions, 0, 0);

net.minecraft.gametest.framework.TestCommand$Runner#Runner(TestFinder<TestCommand.Runner>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:458
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ TestCommand.Runner ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: finder.

Parameters

  • TestFinder<TestCommand.Runner> testFinder

ตัวอย่างใช้งาน

TestFinder<TestCommand.Runner> testFinder = ...;
TestCommand.Runner instance = new TestCommand.Runner(testFinder);

TestCommand$TestSummaryDisplayer

  • Full name: net.minecraft.gametest.framework.TestCommand$TestSummaryDisplayer
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestCommand.java
  • Type: record
  • Modifiers: public
  • Implements: GameTestListener

net.minecraft.gametest.framework.TestCommand$TestSummaryDisplayer#testAddedForRerun(GameTestInfo,GameTestInfo,GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:676
  • Modifiers: public
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Added For Rerun

ทำงานยังไง

เรียกต่อ: addTestToTrack().

Parameters

  • GameTestInfo gameTestInfo
  • GameTestInfo gameTestInfo2
  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

TestCommand.TestSummaryDisplayer instance = ...;
GameTestInfo gameTestInfo = ...;
GameTestInfo gameTestInfo2 = ...;
GameTestRunner gameTestRunner = ...;
instance.testAddedForRerun(gameTestInfo, gameTestInfo2, gameTestRunner);

net.minecraft.gametest.framework.TestCommand$TestSummaryDisplayer#testFailed(GameTestInfo,GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:671
  • Modifiers: public
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Failed

ทำงานยังไง

เรียกต่อ: showTestSummaryIfAllDone().

Parameters

  • GameTestInfo gameTestInfo
  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

TestCommand.TestSummaryDisplayer instance = ...;
GameTestInfo gameTestInfo = ...;
GameTestRunner gameTestRunner = ...;
instance.testFailed(gameTestInfo, gameTestRunner);

net.minecraft.gametest.framework.TestCommand$TestSummaryDisplayer#testPassed(GameTestInfo,GameTestRunner)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:666
  • Modifiers: public
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Passed

ทำงานยังไง

เรียกต่อ: showTestSummaryIfAllDone().

Parameters

  • GameTestInfo gameTestInfo
  • GameTestRunner gameTestRunner

ตัวอย่างใช้งาน

TestCommand.TestSummaryDisplayer instance = ...;
GameTestInfo gameTestInfo = ...;
GameTestRunner gameTestRunner = ...;
instance.testPassed(gameTestInfo, gameTestRunner);

net.minecraft.gametest.framework.TestCommand$TestSummaryDisplayer#testStructureLoaded(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestCommand.java:662
  • Modifiers: public
  • Return: void

คืออะไร

ทดสอบเงื่อนไข Structure Loaded

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

TestCommand.TestSummaryDisplayer instance = ...;
GameTestInfo gameTestInfo = ...;
instance.testStructureLoaded(gameTestInfo);

TestFinder

  • Full name: net.minecraft.gametest.framework.TestFinder
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestFinder.java
  • Type: class
  • Modifiers: public
  • Implements: StructureBlockPosFinder,TestFunctionFinder

net.minecraft.gametest.framework.TestFinder#findStructureBlockPos()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:21
  • Modifiers: public
  • Return: Stream<BlockPos>

คืออะไร

ค้นหา Structure Block Pos

ทำงานยังไง

คืนค่า: this.structureBlockPosFinder.findStructureBlockPos().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFinder instance = ...;
Stream<BlockPos> result = instance.findStructureBlockPos();

net.minecraft.gametest.framework.TestFinder#findTestFunctions()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:46
  • Modifiers: public
  • Return: Stream<TestFunction>

คืออะไร

ค้นหา Test Functions

ทำงานยังไง

คืนค่า: this.testFunctionFinder.findTestFunctions().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFinder instance = ...;
Stream<TestFunction> result = instance.findTestFunctions();

net.minecraft.gametest.framework.TestFinder#source()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:42
  • Modifiers: public
  • Return: CommandSourceStack

คืออะไร

ดำเนินการ source ตาม implementation ของ TestFinder

ทำงานยังไง

คืนค่า: this.source.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFinder instance = ...;
CommandSourceStack result = instance.source();

TestFinder$Builder

  • Full name: net.minecraft.gametest.framework.TestFinder$Builder
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestFinder.java
  • Type: class
  • Modifiers: public static

net.minecraft.gametest.framework.TestFinder$Builder#allNearby(CommandContext<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:111
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ allNearby ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: getSource(), containing(), getPosition(), build(), findStructureBlocks(), getLevel(). คืนค่า: this.build(commandSourceStack, TestFinder.NO_FUNCTIONS, () -> StructureUtils.findStructureBlocks(blockPos, 200, commandSourceStack.getLevel())).

Parameters

  • CommandContext<CommandSourceStack> commandContext

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.allNearby(commandContext);

net.minecraft.gametest.framework.TestFinder$Builder#allTests(CommandContext<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:128
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ allTests ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: build(), getSource(), getAllTestFunctions(), stream(), filter(), manualOnly().

Parameters

  • CommandContext<CommandSourceStack> commandContext

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.allTests(commandContext);

net.minecraft.gametest.framework.TestFinder$Builder#allTestsInClass(CommandContext<CommandSourceStack>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:136
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ allTestsInClass ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: build(), getSource(), getTestFunctionsForClassName(), filter(), manualOnly().

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • String string

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.allTestsInClass(commandContext, "value");

net.minecraft.gametest.framework.TestFinder$Builder#Builder(Function<TestFinder<T>, T>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:56
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ TestFinder.Builder ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: contextProvider, testFunctionFinderWrapper, structureBlockPosFinderWrapper.

Parameters

  • Function<TestFinder<T>, T> function

ตัวอย่างใช้งาน

Function<TestFinder<T>, T> function = ...;
TestFinder.Builder instance = new TestFinder.Builder(function);

net.minecraft.gametest.framework.TestFinder$Builder#byArgument(CommandContext<CommandSourceStack>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:150
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ byArgument ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: build(), getSource(), of(), getTestFunction(). คืนค่า: this.build(commandContext.getSource(), () -> Stream.of(TestFunctionArgument.getTestFunction(commandContext, string)), TestFinder.NO_STRUCTURES).

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • String string

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.byArgument(commandContext, "value");

net.minecraft.gametest.framework.TestFinder$Builder#createMultipleCopies(int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:70
  • Modifiers: public
  • Return: TestFinder.Builder<T>

คืออะไร

สร้าง Multiple Copies

ทำงานยังไง

เรียกต่อ: createCopies(). สร้างออบเจ็กต์: TestFinder.Builder<>. คืนค่า: new TestFinder.Builder<>(this.contextProvider, createCopies(i), createCopies(i)).

Parameters

  • int i

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
TestFinder.Builder<T> result = instance.createMultipleCopies(0);

net.minecraft.gametest.framework.TestFinder$Builder#failedTests(CommandContext<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:162
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ failedTests ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

คืนค่า: this.failedTests(commandContext, false).

Parameters

  • CommandContext<CommandSourceStack> commandContext

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.failedTests(commandContext);

net.minecraft.gametest.framework.TestFinder$Builder#failedTests(CommandContext<CommandSourceStack>,boolean)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:144
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ failedTests ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: build(), getSource(), getLastFailedTests(), filter(), required().

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • boolean bl

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.failedTests(commandContext, true);

net.minecraft.gametest.framework.TestFinder$Builder#locateByName(CommandContext<CommandSourceStack>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:154
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ locateByName ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: getSource(), containing(), getPosition(), build(), findStructureByTestFunction(), getLevel().

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • String string

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.locateByName(commandContext, "value");

net.minecraft.gametest.framework.TestFinder$Builder#lookedAt(CommandContext<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:117
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ lookedAt ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: getSource(), build(), lookedAtStructureBlockPos(), containing(), getPosition(), getPlayer(), getCamera(), getLevel().

Parameters

  • CommandContext<CommandSourceStack> commandContext

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.lookedAt(commandContext);

net.minecraft.gametest.framework.TestFinder$Builder#nearest(CommandContext<CommandSourceStack>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:103
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ nearest ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: getSource(), containing(), getPosition(), build(), findNearestStructureBlock(), getLevel(), stream().

Parameters

  • CommandContext<CommandSourceStack> commandContext

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.nearest(commandContext);

net.minecraft.gametest.framework.TestFinder$Builder#radius(CommandContext<CommandSourceStack>,int)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFinder.java:97
  • Modifiers: public
  • Return: T

คืออะไร

ดำเนินการ radius ตาม implementation ของ TestFinder$Builder

ทำงานยังไง

เรียกต่อ: getSource(), containing(), getPosition(), build(), findStructureBlocks(), getLevel(). คืนค่า: this.build(commandSourceStack, TestFinder.NO_FUNCTIONS, () -> StructureUtils.findStructureBlocks(blockPos, i, commandSourceStack.getLevel())).

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • int i

ตัวอย่างใช้งาน

TestFinder.Builder instance = ...;
CommandContext<CommandSourceStack> commandContext = ...;
T result = instance.radius(commandContext, 0);

TestFunction

  • Full name: net.minecraft.gametest.framework.TestFunction
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestFunction.java
  • Type: record
  • Modifiers: public

net.minecraft.gametest.framework.TestFunction#isFlaky()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunction.java:37
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Flaky

ทำงานยังไง

คืนค่า: this.maxAttempts > 1.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFunction instance = ...;
boolean result = instance.isFlaky();

net.minecraft.gametest.framework.TestFunction#run(GameTestHelper)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunction.java:28
  • Modifiers: public
  • Return: void

คืออะไร

สั่งทำงาน run

ทำงานยังไง

เรียกต่อ: accept().

Parameters

  • GameTestHelper gameTestHelper

ตัวอย่างใช้งาน

TestFunction instance = ...;
GameTestHelper gameTestHelper = ...;
instance.run(gameTestHelper);

net.minecraft.gametest.framework.TestFunction#TestFunction(String,String,String,int,long,boolean,Consumer<GameTestHelper>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunction.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ TestFunction ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • String string
  • String string2
  • String string3
  • int i
  • long l
  • boolean bl
  • Consumer<GameTestHelper> consumer

ตัวอย่างใช้งาน

Consumer<GameTestHelper> consumer = ...;
TestFunction instance = new TestFunction("value", "value", "value", 0, 0L, true, consumer);

net.minecraft.gametest.framework.TestFunction#TestFunction(String,String,String,Rotation,int,long,boolean,Consumer<GameTestHelper>)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunction.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ TestFunction ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • String string
  • String string2
  • String string3
  • Rotation rotation
  • int i
  • long l
  • boolean bl
  • Consumer<GameTestHelper> consumer

ตัวอย่างใช้งาน

Rotation rotation = ...;
Consumer<GameTestHelper> consumer = ...;
TestFunction instance = new TestFunction("value", "value", "value", rotation, 0, 0L, true, consumer);

net.minecraft.gametest.framework.TestFunction#toString()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunction.java:32
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ TestFunction

ทำงานยังไง

คืนค่า: this.testName.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFunction instance = ...;
String result = instance.toString();

TestFunctionArgument

  • Full name: net.minecraft.gametest.framework.TestFunctionArgument
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestFunctionArgument.java
  • Type: class
  • Modifiers: public
  • Implements: ArgumentType<TestFunction>

net.minecraft.gametest.framework.TestFunctionArgument#getExamples()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunctionArgument.java:52
  • Modifiers: public
  • Return: Collection<String>

คืออะไร

อ่านค่า Examples

ทำงานยังไง

คืนค่า: EXAMPLES.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFunctionArgument instance = ...;
Collection<String> result = instance.getExamples();

net.minecraft.gametest.framework.TestFunctionArgument#getTestFunction(CommandContext<CommandSourceStack>,String)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunctionArgument.java:38
  • Modifiers: public static
  • Return: TestFunction

คืออะไร

อ่านค่า Test Function

ทำงานยังไง

เรียกต่อ: getArgument(). คืนค่า: commandContext.getArgument(string, TestFunction.class).

Parameters

  • CommandContext<CommandSourceStack> commandContext
  • String string

ตัวอย่างใช้งาน

CommandContext<CommandSourceStack> commandContext = ...;
TestFunction result = TestFunctionArgument.getTestFunction(commandContext, "value");

net.minecraft.gametest.framework.TestFunctionArgument#listSuggestions(CommandContext<S>,SuggestionsBuilder)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunctionArgument.java:42
  • Modifiers: public
  • Return: CompletableFuture<Suggestions>

คืออะไร

ดำเนินการ listSuggestions ตาม implementation ของ TestFunctionArgument

ทำงานยังไง

เรียกต่อ: suggestTestFunction(). คืนค่า: suggestTestFunction(commandContext, suggestionsBuilder).

Parameters

  • CommandContext<S> commandContext
  • SuggestionsBuilder suggestionsBuilder

ตัวอย่างใช้งาน

TestFunctionArgument instance = ...;
CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = instance.listSuggestions(commandContext, suggestionsBuilder);

net.minecraft.gametest.framework.TestFunctionArgument#parse(StringReader)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunctionArgument.java:23
  • Modifiers: public
  • Return: TestFunction

คืออะไร

แปลง/วิเคราะห์ข้อมูล parse

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: readUnquotedString(), findTestFunction(), isPresent(), get(), literal(). สร้างออบเจ็กต์: CommandSyntaxException, SimpleCommandExceptionType. คืนค่า: optional.get().

Parameters

  • StringReader stringReader

Throws

  • CommandSyntaxException

ตัวอย่างใช้งาน

TestFunctionArgument instance = ...;
StringReader stringReader = ...;
TestFunction result = instance.parse(stringReader);

net.minecraft.gametest.framework.TestFunctionArgument#suggestTestFunction(CommandContext<S>,SuggestionsBuilder)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunctionArgument.java:47
  • Modifiers: public static
  • Return: CompletableFuture<Suggestions>

คืออะไร

ดำเนินการ suggestTestFunction ตาม implementation ของ TestFunctionArgument

ทำงานยังไง

เรียกต่อ: getAllTestFunctions(), stream(), map(), suggest(). คืนค่า: SharedSuggestionProvider.suggest(stream, suggestionsBuilder).

Parameters

  • CommandContext<S> commandContext
  • SuggestionsBuilder suggestionsBuilder

ตัวอย่างใช้งาน

CommandContext<S> commandContext = ...;
SuggestionsBuilder suggestionsBuilder = ...;
CompletableFuture<Suggestions> result = TestFunctionArgument.suggestTestFunction(commandContext, suggestionsBuilder);

net.minecraft.gametest.framework.TestFunctionArgument#testFunctionArgument()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunctionArgument.java:34
  • Modifiers: public static
  • Return: TestFunctionArgument

คืออะไร

ทดสอบเงื่อนไข Function Argument

ทำงานยังไง

สร้างออบเจ็กต์: TestFunctionArgument. คืนค่า: new TestFunctionArgument().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFunctionArgument result = TestFunctionArgument.testFunctionArgument();

TestFunctionFinder

  • Full name: net.minecraft.gametest.framework.TestFunctionFinder
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestFunctionFinder.java
  • Type: interface
  • Modifiers: public

net.minecraft.gametest.framework.TestFunctionFinder#findTestFunctions()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestFunctionFinder.java:7
  • Modifiers: ``
  • Return: Stream<TestFunction>

คืออะไร

ค้นหา Test Functions

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestFunctionFinder instance = ...;
Stream<TestFunction> result = instance.findTestFunctions();

TestReporter

  • Full name: net.minecraft.gametest.framework.TestReporter
  • Package: net.minecraft.gametest.framework
  • Source: commonnet/minecraft/gametest/framework/TestReporter.java
  • Type: interface
  • Modifiers: public

net.minecraft.gametest.framework.TestReporter#finish()

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestReporter.java:8
  • Modifiers: default
  • Return: void

คืออะไร

ดำเนินการ finish ตาม implementation ของ TestReporter

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

TestReporter instance = ...;
instance.finish();

net.minecraft.gametest.framework.TestReporter#onTestFailed(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestReporter.java:4
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Failed

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

TestReporter instance = ...;
GameTestInfo gameTestInfo = ...;
instance.onTestFailed(gameTestInfo);

net.minecraft.gametest.framework.TestReporter#onTestSuccess(GameTestInfo)

  • Origin: common
  • Source: net/minecraft/gametest/framework/TestReporter.java:6
  • Modifiers: ``
  • Return: void

คืออะไร

จัดการเหตุการณ์ Test Success

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • GameTestInfo gameTestInfo

ตัวอย่างใช้งาน

TestReporter instance = ...;
GameTestInfo gameTestInfo = ...;
instance.onTestSuccess(gameTestInfo);