Commits
Doc authored and md_5 committed 808cb7ca5c1
22 22 | // SPIGOT-6952: A Material is not necessary a block, in this case return false |
23 23 | if (block == null) { |
24 24 | return false; |
25 25 | } |
26 26 | |
27 27 | return block.builtInRegistryHolder().is(tag); |
28 28 | } |
29 29 | |
30 30 | |
31 31 | public Set<Material> getValues() { |
32 - | return Collections.unmodifiableSet(getHandle().stream().map((block) -> CraftMagicNumbers.getMaterial(block.value())).collect(Collectors.toSet())); |
32 + | return getHandle().stream().map((block) -> CraftMagicNumbers.getMaterial(block.value())).collect(Collectors.toUnmodifiableSet()); |
33 33 | } |
34 34 | } |