25w03a game tests ()

* 25w03a game tests

* Cleanup and improvements

* Update fabric-gametest-api-v1/src/main/java/net/fabricmc/fabric/impl/gametest/TestAnnotationLocator.java

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>

* Use an 8x8 empty structure by default

* Use a dedicated RegistryLoaderMixin instead of hacking around registry sync's api

* Fix

* Checkstyle

---------

Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
This commit is contained in:
modmuss 2025-01-21 18:50:26 +00:00 committed by GitHub
parent bcdf965b28
commit 73a52b4b18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 849 additions and 802 deletions
fabric-object-builder-api-v1/src/testmod/java/net/fabricmc/fabric/test/object/builder

View file

@ -22,8 +22,10 @@ import net.minecraft.block.Block;
import net.minecraft.test.TestContext;
import net.minecraft.util.math.BlockPos;
import net.fabricmc.fabric.api.gametest.v1.GameTest;
public class ObjectBuilderGameTest {
// @GameTest(templateName = FabricGameTest.EMPTY_STRUCTURE) TODO 1.21.5 tests
@GameTest
public void testBlockUse(TestContext context) {
List<Block> blocks = List.of(BlockEntityTypeBuilderTest.INITIAL_BETRAYAL_BLOCK, BlockEntityTypeBuilderTest.ADDED_BETRAYAL_BLOCK, BlockEntityTypeBuilderTest.FIRST_MULTI_BETRAYAL_BLOCK, BlockEntityTypeBuilderTest.SECOND_MULTI_BETRAYAL_BLOCK);
BlockPos.Mutable pos = BlockPos.ORIGIN.up().mutableCopy();