MCPcopy Create free account
hub / github.com/Hypejet/Jet / BlockTest

Class BlockTest

data/json/src/test/java/net/hypejet/jet/data/json/test/BlockTest.java:18–36  ·  view source on GitHub ↗

Represents a GSON conversion test of block-related objects. @since 1.0

Source from the content-addressed store, hash-verified

16 * @since 1.0
17 */
18final 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected