Interface IPlayerSaveListener

All Known Implementing Classes:
CustomPlayerSave
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 interface IPlayerSaveListener
An event listener that is notified when the player data is saved to disk. The listener will be notified after the vanilla save data has been written.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.fabricmc.fabric.api.event.Event<IPlayerSaveListener>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    savePlayerData(net.minecraft.world.entity.player.Player player, Path saveDir)
    Called when a player's data is saved directly to the disk.
  • Field Details

  • Method Details

    • savePlayerData

      void savePlayerData(net.minecraft.world.entity.player.Player player, Path saveDir)
      Called when a player's data is saved directly to the disk.
      Parameters:
      player - The player that is being saved.
      saveDir - The save folder.