Interface IPlayerLoadListener

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 IPlayerLoadListener
An event listener that is notified when player data is read from the disk. This listener will be notified after the vanilla data has been loaded.
  • Field Summary

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

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

  • Method Details

    • loadPlayerData

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