51 virtual void succeedWhenEntityPresent(
60 virtual void succeedWhenEntityPresent(
67 virtual void succeedWhenEntityData(
70 ::std::function<
bool(
::Actor&)> dataPredicate
74 virtual void succeedWhenEntityHasComponent(
76 ::std::string
const& componentName,
82 virtual void succeedWhenBlockPresent(
::Block const& block,
int x,
int y,
int z,
bool isPresent) ;
85 virtual void succeedWhenBlockPresent(
::Block const& block,
::BlockPos const& pos,
bool isPresent) ;
92 virtual void setNight() ;
95 virtual void setDayTime(
int time) ;
98 virtual ::std::optional<::gametest::GameTestError>
99 setBlock(
int x,
int y,
int z,
::Block const& block,
int updateFlags) ;
102 virtual ::std::optional<::gametest::GameTestError>
106 virtual ::std::optional<::gametest::GameTestError>
107 destroyBlock(
::BlockPos const& pos,
bool dropResources) ;
110 virtual ::std::optional<::gametest::GameTestError> pressButton(
int x,
int y,
int z) ;
113 virtual ::std::optional<::gametest::GameTestError> pressButton(
::BlockPos const& buttonPos) ;
116 virtual ::std::optional<::gametest::GameTestError> pullLever(
int x,
int y,
int z) ;
119 virtual ::std::optional<::gametest::GameTestError> pullLever(
::BlockPos const& leverPos) ;
122 virtual ::std::optional<::gametest::GameTestError> killAllEntities() ;
125 virtual ::std::variant<::gametest::GameTestError, ::Actor*>
129 virtual ::std::variant<::gametest::GameTestError, ::Actor*>
133 virtual ::std::variant<::gametest::GameTestError, ::Actor*>
137 virtual ::std::variant<::gametest::GameTestError, ::Actor*>
141 virtual ::std::variant<::gametest::GameTestError, ::Actor*>
145 virtual ::std::variant<::gametest::GameTestError, ::Actor*>
149 virtual ::std::optional<::gametest::GameTestError>
153 virtual ::std::optional<::gametest::GameTestError>
154 walkTo(
::Mob& mob,
::Vec3 const& pos,
float speedModifier) ;
157 virtual ::std::optional<::gametest::GameTestError> setTntFuse(
::Actor& actor,
int fuseLength) ;
160 virtual ::std::optional<::gametest::GameTestError>
164 virtual ::std::optional<::gametest::GameTestError> assertEntityPresent(
173 virtual ::std::optional<::gametest::GameTestError> assertEntityPresent(
180 virtual ::std::optional<::gametest::GameTestError> assertEntityPresent(
183 float const distance,
188 virtual ::std::optional<::gametest::GameTestError>
189 assertEntityInstancePresent(
::Actor const* actor,
::BlockPos const& pos,
bool expectedPresent) ;
192 virtual ::std::optional<::gametest::GameTestError>
193 assertEntityInstancePresent(
::Actor const* actor,
bool expectedPresent)
const ;
196 virtual ::std::optional<::gametest::GameTestError> assertEntityTouching(
203 virtual ::std::optional<::gametest::GameTestError> assertEntityState(
206 ::std::function<
bool(
::Actor&)> dataPredicate
210 virtual ::std::optional<::gametest::GameTestError>
211 assertBlockPresent(
::BlockLegacy const& blockType,
int x,
int y,
int z,
bool isPresent) ;
214 virtual ::std::optional<::gametest::GameTestError>
218 virtual ::std::optional<::gametest::GameTestError>
219 assertBlockState(
::BlockPos const& blockPos, ::std::function<
bool(
::Block const&)> predicate) ;
222 virtual ::std::optional<::gametest::GameTestError>
223 assertItemEntityPresent(
::Item const& item,
int x,
int y,
int z,
float searchDistance,
bool isPresent) ;
226 virtual ::std::optional<::gametest::GameTestError> assertItemEntityPresent(
229 float searchDistance,
234 virtual ::std::optional<::gametest::GameTestError> assertItemEntityCountIs(
237 float searchDistance,
242 virtual ::std::optional<::gametest::GameTestError> assertContainerEmpty(
::BlockPos const& pos) ;
245 virtual ::std::optional<::gametest::GameTestError>
249 virtual ::std::optional<::gametest::GameTestError> assertEntityHasComponent(
251 ::std::string
const& componentName,
257 virtual ::std::optional<::gametest::GameTestError> assertEntityHasArmor(
259 ::SharedTypes::Legacy::ArmorSlot armorSlot,
260 ::std::string
const& armorName,
267 virtual ::std::optional<::gametest::GameTestError> print(::std::string
const& text) ;
270 virtual ::std::optional<::gametest::GameTestError>
271 assertRedstonePower(
::BlockPos const& pos,
int expectedPower) ;
274 virtual ::std::optional<::gametest::GameTestError>
275 assertIsWaterlogged(
::BlockPos const& pos,
bool expectedWaterlogged) ;
278 virtual ::std::optional<::gametest::GameTestError> pulseRedstone(
::BlockPos const& pos,
int duration) ;
281 virtual ::std::variant<::gametest::GameTestError, ::ScriptModuleGameTest::ScriptGameTestConnectivity>
282 getFenceConnectivity(
::BlockPos const& relativePos) ;
285 virtual ::std::optional<::gametest::GameTestError>
286 setFluidContainer(
::BlockPos const& pos,
int _fluidType) ;
289 virtual ::std::optional<::gametest::GameTestError> triggerInternalBlockEvent(
291 ::std::string
const& event,
292 ::std::vector<float>
const& parameters
296 virtual ::std::variant<::gametest::GameTestError, ::BlockPos> worldPosition(
::BlockPos const& relativePos)
const
300 virtual ::std::variant<::gametest::GameTestError, ::Vec3> worldPosition(
::Vec3 const& relativePos)
const
304 virtual ::std::variant<::gametest::GameTestError, ::BlockPos> relativePosition(
::BlockPos const& worldPos)
const
308 virtual ::std::variant<::gametest::GameTestError, ::Vec3> relativePosition(
::Vec3 const& worldPos)
const
312 virtual ::std::optional<::gametest::GameTestError>
313 assertCanReachLocation(
::Mob& mob,
::BlockPos const& pos,
bool expectedReach) ;
316 virtual ::std::optional<::gametest::GameTestError> spreadFromFaceTowardDirection(
318 ::ScriptModuleMinecraft::ScriptFacing fromFace,
319 ::ScriptModuleMinecraft::ScriptFacing direction
323 virtual ::std::optional<::gametest::GameTestError> getBlockSource(
::BlockSource*& blockSourceResult) ;
326 virtual ::std::variant<::gametest::GameTestError, ::SimulatedPlayer*>
327 spawnSimulatedPlayer(::std::string
const& name,
::BlockPos const& pos, ::GameType gameMode) ;
333 virtual ::std::variant<::gametest::GameTestError, ::Dimension*> getDimension() ;
336 virtual ::std::optional<::gametest::GameTestError> onPlayerJump(
::Mob& mob,
int jumpAmount) ;
342 MCAPI ::std::optional<::gametest::GameTestError> _assertEntityInstancePresent(
344 ::AABB const& searchBounds,
349 MCAPI ::std::optional<::gametest::GameTestError> _assertEntityPresent(
351 ::AABB const& searchBounds,
356 MCAPI ::Block
const& _getBlock(
::BlockPos const& pos);
358 MCAPI ::Container
const* _getContainer(
::BlockPos const& pos);
360 MCAPI ::std::optional<::gametest::GameTestError> _getStructureBlockMissingError()
const;
375 MCAPI
void $succeedWhenEntityPresent(
381 MCAPI
void $succeedWhenEntityData(
384 ::std::function<
bool(
::Actor&)> dataPredicate
387 MCAPI
void $succeedWhenEntityHasComponent(
389 ::std::string
const& componentName,
394 MCAPI
void $succeedWhenBlockPresent(
::Block const& block,
int x,
int y,
int z,
bool isPresent);
396 MCAPI
void $succeedWhenBlockPresent(
::Block const& block,
::BlockPos const& pos,
bool isPresent);
400 MCAPI
void $setNight();
402 MCAPI
void $setDayTime(
int time);
404 MCAPI ::std::optional<::gametest::GameTestError>
405 $setBlock(
int x,
int y,
int z,
::Block const& block,
int updateFlags);
407 MCAPI ::std::optional<::gametest::GameTestError>
410 MCAPI ::std::optional<::gametest::GameTestError> $destroyBlock(
::BlockPos const& pos,
bool dropResources);
412 MCAPI ::std::optional<::gametest::GameTestError> $pressButton(
int x,
int y,
int z);
414 MCAPI ::std::optional<::gametest::GameTestError> $pressButton(
::BlockPos const& buttonPos);
416 MCAPI ::std::optional<::gametest::GameTestError> $pullLever(
int x,
int y,
int z);
418 MCAPI ::std::optional<::gametest::GameTestError> $pullLever(
::BlockPos const& leverPos);
420 MCAPI ::std::optional<::gametest::GameTestError> $killAllEntities();
422 MCAPI ::std::variant<::gametest::GameTestError, ::Actor*>
425 MCAPI ::std::variant<::gametest::GameTestError, ::Actor*>
428 MCAPI ::std::variant<::gametest::GameTestError, ::Actor*>
431 MCAPI ::std::variant<::gametest::GameTestError, ::Actor*>
434 MCAPI ::std::variant<::gametest::GameTestError, ::Actor*>
437 MCAPI ::std::variant<::gametest::GameTestError, ::Actor*>
440 MCAPI ::std::optional<::gametest::GameTestError> $walkTo(
::Mob& mob,
::BlockPos const& pos,
float speedModifier);
442 MCAPI ::std::optional<::gametest::GameTestError> $walkTo(
::Mob& mob,
::Vec3 const& pos,
float speedModifier);
444 MCAPI ::std::optional<::gametest::GameTestError> $setTntFuse(
::Actor& actor,
int fuseLength);
446 MCAPI ::std::optional<::gametest::GameTestError>
449 MCAPI ::std::optional<::gametest::GameTestError>
452 MCAPI ::std::optional<::gametest::GameTestError>
455 MCAPI ::std::optional<::gametest::GameTestError> $assertEntityPresent(
458 float const distance,
462 MCAPI ::std::optional<::gametest::GameTestError>
463 $assertEntityInstancePresent(
::Actor const* actor,
::BlockPos const& pos,
bool expectedPresent);
465 MCAPI ::std::optional<::gametest::GameTestError>
466 $assertEntityInstancePresent(
::Actor const* actor,
bool expectedPresent)
const;
468 MCAPI ::std::optional<::gametest::GameTestError>
471 MCAPI ::std::optional<::gametest::GameTestError> $assertEntityState(
474 ::std::function<
bool(
::Actor&)> dataPredicate
477 MCAPI ::std::optional<::gametest::GameTestError>
478 $assertBlockPresent(
::BlockLegacy const& blockType,
int x,
int y,
int z,
bool isPresent);
480 MCAPI ::std::optional<::gametest::GameTestError>
483 MCAPI ::std::optional<::gametest::GameTestError>
484 $assertBlockState(
::BlockPos const& blockPos, ::std::function<
bool(
::Block const&)> predicate);
486 MCAPI ::std::optional<::gametest::GameTestError>
487 $assertItemEntityPresent(
::Item const& item,
int x,
int y,
int z,
float searchDistance,
bool isPresent);
489 MCAPI ::std::optional<::gametest::GameTestError>
490 $assertItemEntityPresent(
::Item const& item,
::BlockPos const& pos,
float searchDistance,
bool isPresent);
492 MCAPI ::std::optional<::gametest::GameTestError>
493 $assertItemEntityCountIs(
::Item const& itemType,
::BlockPos const& pos,
float searchDistance,
int expectedCount);
495 MCAPI ::std::optional<::gametest::GameTestError> $assertContainerEmpty(
::BlockPos const& pos);
497 MCAPI ::std::optional<::gametest::GameTestError>
500 MCAPI ::std::optional<::gametest::GameTestError> $assertEntityHasComponent(
502 ::std::string
const& componentName,
507 MCAPI ::std::optional<::gametest::GameTestError> $assertEntityHasArmor(
509 ::SharedTypes::Legacy::ArmorSlot armorSlot,
510 ::std::string
const& armorName,
516 MCAPI ::std::optional<::gametest::GameTestError> $print(::std::string
const& text);
518 MCAPI ::std::optional<::gametest::GameTestError> $assertRedstonePower(
::BlockPos const& pos,
int expectedPower);
520 MCAPI ::std::optional<::gametest::GameTestError>
521 $assertIsWaterlogged(
::BlockPos const& pos,
bool expectedWaterlogged);
523 MCAPI ::std::optional<::gametest::GameTestError> $pulseRedstone(
::BlockPos const& pos,
int duration);
525 MCAPI ::std::variant<::gametest::GameTestError, ::ScriptModuleGameTest::ScriptGameTestConnectivity>
526 $getFenceConnectivity(
::BlockPos const& relativePos);
528 MCAPI ::std::optional<::gametest::GameTestError> $setFluidContainer(
::BlockPos const& pos,
int _fluidType);
530 MCAPI ::std::optional<::gametest::GameTestError> $triggerInternalBlockEvent(
532 ::std::string
const& event,
533 ::std::vector<float>
const& parameters
536 MCAPI ::std::variant<::gametest::GameTestError, ::BlockPos> $worldPosition(
::BlockPos const& relativePos)
const;
538 MCAPI ::std::variant<::gametest::GameTestError, ::Vec3> $worldPosition(
::Vec3 const& relativePos)
const;
540 MCAPI ::std::variant<::gametest::GameTestError, ::BlockPos> $relativePosition(
::BlockPos const& worldPos)
const;
542 MCAPI ::std::variant<::gametest::GameTestError, ::Vec3> $relativePosition(
::Vec3 const& worldPos)
const;
544 MCAPI ::std::optional<::gametest::GameTestError>
545 $assertCanReachLocation(
::Mob& mob,
::BlockPos const& pos,
bool expectedReach);
547 MCAPI ::std::optional<::gametest::GameTestError> $spreadFromFaceTowardDirection(
549 ::ScriptModuleMinecraft::ScriptFacing fromFace,
550 ::ScriptModuleMinecraft::ScriptFacing direction
553 MCAPI ::std::optional<::gametest::GameTestError> $getBlockSource(
::BlockSource*& blockSourceResult);
555 MCAPI ::std::variant<::gametest::GameTestError, ::SimulatedPlayer*>
556 $spawnSimulatedPlayer(::std::string
const& name,
::BlockPos const& pos, ::GameType gameMode);
560 MCAPI ::std::variant<::gametest::GameTestError, ::Dimension*> $getDimension();
562 MCAPI ::std::optional<::gametest::GameTestError> $onPlayerJump(
::Mob& mob,
int jumpAmount);
568 MCAPI
static void** $vftable();