Interface SafeNbtWriterRegistry.SafeNbtWriter

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.

@FunctionalInterface public static interface SafeNbtWriterRegistry.SafeNbtWriter
  • Method Summary

    Modifier and Type
    Method
    Description
    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