Represents a GSON conversion test of block-related objects. @since 1.0
| 16 | * @since 1.0 |
| 17 | */ |
| 18 | final class BlockTest { |
| 19 | @Test |
| 20 | void testBlockEntityType() { |
| 21 | TestUtil.test(new JsonBlockEntityType(Set.of(Key.key("glowstone"), Key.key("grass")))); |
| 22 | } |
| 23 | |
| 24 | @Test |
| 25 | void testBlockState() { |
| 26 | TestUtil.test(new JsonBlockState(Map.of("property", "value", "this", "is-a-test"), true, true, false, true)); |
| 27 | } |
| 28 | |
| 29 | @Test |
| 30 | void testBlock() { |
| 31 | TestUtil.test(new JsonBlock( |
| 32 | Set.of(Key.key("vanilla"), Key.key("hypejet", "pack")), |
| 33 | 3, ImmutableIntArray.of(3, 4, 5, 6, 7, 8, 9, 10) |
| 34 | )); |
| 35 | } |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected