use ::never instead of explicit

This commit is contained in:
yrsegal@gmail.com 2022-04-09 15:17:56 -04:00
parent faee8a45b4
commit 74cca1057d

View file

@ -38,7 +38,7 @@ public class HexBlocks {
.sound(SoundType.AMETHYST)
.lightLevel((state) -> 15)
.noDrops()
.isValidSpawn((state, world, pos, entityType) -> false)
.isValidSpawn(HexBlocks::never)
.instabreak()
.noCollission()
.isSuffocating(HexBlocks::never)
@ -50,7 +50,7 @@ public class HexBlocks {
.sound(SoundType.AMETHYST)
.lightLevel((state) -> 2)
.noDrops()
.isValidSpawn((state, world, pos, entityType) -> false)
.isValidSpawn(HexBlocks::never)
.instabreak()
.noOcclusion()
.isSuffocating(HexBlocks::never)