Migrated some API calls
This commit is contained in:
parent
c11fca74a5
commit
daa4a2b4af
56 changed files with 172 additions and 167 deletions
|
@ -1,6 +1,5 @@
|
|||
package org.betterx.bclib.interfaces;
|
||||
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.tags.TagKey;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
|
@ -18,7 +17,7 @@ public interface SurvivesOnTags extends SurvivesOnSpecialGround {
|
|||
default String getSurvivableBlocksString() {
|
||||
return getSurvivableTags()
|
||||
.stream()
|
||||
.map(tag -> Registry.BLOCK.getTag(tag))
|
||||
.map(tag -> BuiltInRegistries.BLOCK.getTag(tag))
|
||||
.filter(named -> named.isPresent())
|
||||
.map(named -> named.get())
|
||||
.flatMap(named -> named.stream())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue