- Enclosing class:
SafeNbtWriterRegistry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
void
writeSafe(net.minecraft.world.level.block.entity.BlockEntity be,
net.minecraft.nbt.CompoundTag tag,
net.minecraft.core.HolderLookup.Provider registries)
Write filtered, safe NBT to the given tag.
-
Method Details
-
writeSafe
void writeSafe(net.minecraft.world.level.block.entity.BlockEntity be,
net.minecraft.nbt.CompoundTag tag,
net.minecraft.core.HolderLookup.Provider registries)
Write filtered, safe NBT to the given tag. This is always called on the logical server.
- Parameters:
tag - the NBT tag to write to