MaterialSets { public static Union unionBuilder() { return new Union(); }  @Nullable static Set<Material> toLegacy(@Nullable MaterialSet v); @Nonnull static Set<Material> toLegacyNN(@Nonnull MaterialSet v); static MaterialSet wildcard(); static MaterialSet empty(); static MaterialSet union(MaterialSet left, MaterialSet right); static MaterialSet union(MaterialSet left, MaterialAndData right); static MaterialSet union(
            MaterialSet left,
            Material... materials); static Union unionBuilder();  }
@Test public void testTestBlock() { MaterialSet set = MaterialSets.unionBuilder() .add(Material.STONE) .build(); assertTrue(set.testBlock(stone())); assertFalse(set.testBlock(dirt())); }
@SuppressWarnings("deprecation") @Test public void testFromConfig() { MaterialAndData value = ConfigurationUtils.toMaterialAndData("stone|2"); MaterialSet set = MaterialSets.unionBuilder() .add(value) .build(); assertFalse(set.testBlock(stone())); assertFalse(set.testBlock(dirt())); Block correct = stone(); Mockito.when(correct.getData()).thenReturn((byte) 2); assertTrue(set.testBlock(correct)); }