Skip to content

Commit

Permalink
some unfinished gametest stuff for later
Browse files Browse the repository at this point in the history
  • Loading branch information
Cart3r1234 committed Jan 9, 2025
1 parent 85b3064 commit c295b8a
Showing 1 changed file with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,32 @@ public void thinPortalSurfaces(GameTestHelper helper) {
//todo
}

//Test the "create" portion of the portal command
@GameTest(template = GROUP + "portal_command_create")
public void portalCommandCreate(GameTestHelper helper) {

//todo

helper.succeedWhen(() -> {
//placeOn1.primary().assertPresent();
//placeOn1.secondary().assertPresent();
//placeAt1.primary().assertPresent();
//placeAt1.secondary().assertPresent();
//shotFrom1.primary().assertPresent();
//shotFrom1.secondary().assertPresent();

helper.assertBlockPresent(Blocks.SPONGE, 0, 0, 0);
//todo: leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later
});
}

//Test the "remove" portion of the portal command
@GameTest(template = GROUP + "portal_command_remove")
public void portalCommandRemove(GameTestHelper helper) {

//todo
}


//Test portals becoming obstructed by solid blocks that they cannot exist within
@GameTest(template = GROUP + "portal_become_obstructed")
Expand Down Expand Up @@ -217,7 +243,7 @@ public void portalBecomeObstructed(GameTestHelper helper) {
//doorTrapdoor.secondary().assertNotPresent();

helper.assertBlockPresent(Blocks.SPONGE, 0, 0, 0);
//leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later
//todo: leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later
});
}

Expand All @@ -241,7 +267,7 @@ public void validPortalSurfaces(GameTestHelper helper) {
//facadeSurfaces.secondary().assertPresent();

helper.assertBlockPresent(Blocks.SPONGE, 0, 0, 0);
//leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later
//todo: leave this here until the portal existence checks are implemented, so the test doesn't pass instantly. Remove later
});

}
Expand Down

0 comments on commit c295b8a

Please sign in to comment.