generated from FabricMC/fabric-example-mod
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3.0.0+1.20] organized entrypoints & introduced gametest (#75)
* bump deps * introduced gametest * renamed reinfshulkerclient to reinfshulker-client * fixed entrypoints * added gametest utils * added gametest testcases * added gametest phase to workflows * re-integrated with shulker box tooltip * fixed fabric.mod.json format * fixed methods * fixed styles * bump mod version to v3.0.0+1.20
- Loading branch information
Showing
22 changed files
with
1,998 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/atonkish/reinfshulker/gametest/ReinforcedShulkerBoxesModGameTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package atonkish.reinfshulker.gametest; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
|
||
import net.minecraft.test.CustomTestProvider; | ||
import net.minecraft.test.TestFunction; | ||
|
||
import atonkish.reinfshulker.gametest.testcase.AdvancementTests; | ||
import atonkish.reinfshulker.gametest.testcase.CauldronBehaviorTests; | ||
import atonkish.reinfshulker.gametest.testcase.DispenserBehaviorTests; | ||
import atonkish.reinfshulker.gametest.testcase.InventoryTests; | ||
import atonkish.reinfshulker.gametest.testcase.LootTableTests; | ||
import atonkish.reinfshulker.gametest.testcase.OpenTests; | ||
import atonkish.reinfshulker.gametest.testcase.PiglinTests; | ||
import atonkish.reinfshulker.gametest.testcase.PistonBehaviorTests; | ||
import atonkish.reinfshulker.gametest.testcase.RecipeTests; | ||
|
||
public class ReinforcedShulkerBoxesModGameTest { | ||
@CustomTestProvider | ||
public Collection<TestFunction> registerTests() { | ||
Collection<TestFunction> testFunctions = new ArrayList<>(); | ||
|
||
if (System.getProperty(this.getClass().getPackageName()) == null) { | ||
return testFunctions; | ||
} | ||
|
||
testFunctions.addAll(AdvancementTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(CauldronBehaviorTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(DispenserBehaviorTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(InventoryTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(LootTableTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(OpenTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(PiglinTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(PistonBehaviorTests.TEST_FUNCTIONS); | ||
testFunctions.addAll(RecipeTests.TEST_FUNCTIONS); | ||
|
||
return testFunctions; | ||
} | ||
} |
Oops, something went wrong.